Browse Source

slottest function expanded.

master
MagicBot 2 years ago
parent
commit
9649538a56
  1. 10
      src/engine/devcmd/cmds/SlotTestCmd.java

10
src/engine/devcmd/cmds/SlotTestCmd.java

@ -53,11 +53,11 @@ public class SlotTestCmd extends AbstractDevCmd { @@ -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;
}

Loading…
Cancel
Save