slottest function expanded.
This commit is contained in:
1 parent
d5ca5993aa
commit
9649538a56
1 file changed
+5
-5
@@ -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