Browse Source

slottest function expanded.

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

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

@ -55,7 +55,7 @@ public class SlotTestCmd extends AbstractDevCmd {
int slot = Integer.parseInt(args[0]); int slot = Integer.parseInt(args[0]);
Vector3fImmutable slotPosition; Vector3fImmutable slotPosition;
BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot); BuildingLocation slotLocation = BuildingManager._slotLocations.get(building.meshUUID).get(slot);
slotPosition = slotLocation.getLocation(); slotPosition = building.getLoc().add(slotLocation.getLocation());
slotPosition = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotPosition, building.getBounds().getQuaternion().angleY); slotPosition = Vector3fImmutable.rotateAroundPoint(building.getLoc(), slotPosition, building.getBounds().getQuaternion().angleY);
playerCharacter.teleport(slotPosition); playerCharacter.teleport(slotPosition);
return; return;

Loading…
Cancel
Save