Browse Source

Unused method removed.

master
MagicBot 1 year ago
parent
commit
8b2a07e860
  1. 16
      src/engine/gameManager/BuildingManager.java

16
src/engine/gameManager/BuildingManager.java

@ -17,7 +17,6 @@ import engine.job.JobContainer; @@ -17,7 +17,6 @@ import engine.job.JobContainer;
import engine.job.JobScheduler;
import engine.jobs.UpgradeBuildingJob;
import engine.math.Bounds;
import engine.math.Quaternion;
import engine.math.Vector3fImmutable;
import engine.net.client.msg.ErrorPopupMsg;
import engine.objects.*;
@ -72,21 +71,6 @@ public enum BuildingManager { @@ -72,21 +71,6 @@ public enum BuildingManager {
return buildingLocation;
}
public static Quaternion getSlotRotation(Building building, int slot) {
if (slot == -1)
return new Quaternion();
BuildingLocation buildingLocation;
buildingLocation = _slotLocations.get(building.meshUUID).get(slot - 1); // array index
if (buildingLocation == null) {
Logger.error("Invalid slot rotation for building: " + building.getObjectUUID());
}
return buildingLocation.getRotation();
}
public static boolean playerCanManage(PlayerCharacter player, Building building) {
if (player == null)

Loading…
Cancel
Save