Fixed several housing issues, see extended

Fixed an issue where players who weren't admins could access the
structure management terminal

Fixed an issue a person requesting the housing status page would see
their own name as the owner even if they weren't

Fixed an issue where the object service would encounter an error when
attempting to view child objects via an attachment

Added getFirstName and getLastName methods to the CreatureObject class

Possibly fixed an issue where items that were moveable would be picked
up via double-clicking
This commit is contained in:
Seefo
2014-06-11 18:41:14 -04:00
parent 6aa4229994
commit 51a9239889
5 changed files with 56 additions and 51 deletions
+6 -4
View File
@@ -528,11 +528,13 @@ public class ObjectService implements INetworkDispatch {
core.simulationService.remove(object, object.getWorldPosition().x, object.getWorldPosition().z, true);
}
@SuppressWarnings("unchecked") Vector<SWGObject> childObjects = (Vector<SWGObject>) object.getAttachment("childObjects");
for(SWGObject child : childObjects) {
if(child.getParentId() != 0)
destroyObject(child);
if(childObjects != null)
{
for(SWGObject child : childObjects) {
if(child != null && child.getParentId() != 0)
destroyObject(child);
}
}
}
public void destroyObject(long objectID) {