mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
Fix to #862
This commit is contained in:
@@ -335,9 +335,13 @@ public class HousingService implements INetworkDispatch {
|
||||
deed.setIntAttribute("@obj_attr_n:examine_maintenance_rate", houseTemplate.getBaseMaintenanceRate());
|
||||
deed.setIntAttribute("@obj_attr_n:examine_maintenance", (int) building.getMaintenanceAmount());
|
||||
|
||||
core.objectService.destroyObject(building.getObjectID());
|
||||
owner.getContainer().remove(owner);
|
||||
|
||||
if(building.getAttachment("sign") != null)
|
||||
core.objectService.destroyObject((SWGObject) building.getAttachment("sign"));
|
||||
|
||||
core.objectService.destroyObject(building.getObjectID());
|
||||
|
||||
|
||||
SWGObject ownerInventory = owner.getSlottedObject("inventory");
|
||||
ownerInventory.add(deed);
|
||||
|
||||
Reference in New Issue
Block a user