mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-05 20:13:20 -04:00
Fixed compile errors and QA tool recover
This commit is contained in:
+1
-1
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user