Fixed compile errors and QA tool recover

This commit is contained in:
Obique
2018-09-01 19:13:38 -05:00
parent 3d257ad12c
commit afccf652ac
2 changed files with 9 additions and 1 deletions
@@ -158,7 +158,7 @@ public class CmdQaTool implements ICmdCallback {
}
Location loc = new Location(3525, 4, -4807, Terrain.TATOOINE);
recoveree.moveToLocation(loc);
recoveree.moveToContainer(null, loc);
SystemMessageIntent.broadcastPersonal(player, "Sucessfully teleported " + recoveree.getObjectName() + " to " + loc.getPosition());
}
@@ -266,6 +266,14 @@ public abstract class SWGObject extends BaselineObject implements Comparable<SWG
moveToContainer(newParent, Location.builder(getLocation()).setPosition(x, y, z).build());
}
/**
* Attempts to move this object to the specified location within the current parent
* @param location the location to move this object to
*/
public void moveToLocation(@NotNull Location location) {
moveToContainer(parent, location);
}
/**
* Moves this object to the passed container if the requester has the MOVE permission for the container
*