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 {
if (args.length == 1) { if (args.length == 1) {
int slot = Integer.parseInt(args[0]); int slot = Integer.parseInt(args[0]);
Vector3fImmutable slotPosition; Vector3fImmutable slotLocation;
BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); BuildingLocation buildingLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot);
slotPosition = building.getLoc().add(slotLocation.getLocation()); slotLocation = building.getLoc().add(buildingLocation.getLocation());
slotPosition = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotPosition, building.getBounds().getQuaternion().angleY); slotLocation = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotLocation, building.getBounds().getQuaternion().angleY);
playerCharacter.teleport(slotPosition); playerCharacter.teleport(slotLocation);
return; return;
} }

Loading…
Cancel
Save