mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-12 23:45:12 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user