forked from MagicBane/Server
slottest function expanded.
This commit is contained in:
@@ -53,11 +53,11 @@ public class SlotTestCmd extends AbstractDevCmd {
|
||||
if (args.length == 1) {
|
||||
|
||||
int slot = Integer.parseInt(args[0]);
|
||||
Vector3fImmutable slotPosition;
|
||||
BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot);
|
||||
slotPosition = building.getLoc().add(slotLocation.getLocation());
|
||||
slotPosition = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotPosition, building.getBounds().getQuaternion().angleY);
|
||||
playerCharacter.teleport(slotPosition);
|
||||
Vector3fImmutable slotLocation;
|
||||
BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot);
|
||||
slotLocation = building.getLoc().add(buildingLocation.getLocation());
|
||||
slotLocation = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotLocation, building.getBounds().getQuaternion().angleY);
|
||||
playerCharacter.teleport(slotLocation);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user