Fixed issue when placing a temporary structure and the template for the deed was null - most likely due to the structure not having a deed in the first place via placing in god mode maybe.

This commit is contained in:
Cekis
2016-05-23 03:58:06 +01:00
parent ea966dab86
commit eafdeef933
@@ -354,6 +354,9 @@ public class player_structure extends script.base_script
int maintenance_mod = getSkillStatMod(owner, "structure_maintenance_mod");
int factory_mod = getSkillStatMod(owner, "factory_efficiency");
String deed_template = getTemplateName(deed);
if(deed_template == null){
deed_template = "";
}
dictionary deed_info = new dictionary();
deed_info.put("template", deed_template);
deed_info.put("build_time", build_time);