Minor reformat
This commit is contained in:
@@ -49,6 +49,7 @@ public enum BuildingManager {
|
|||||||
public static HashMap<Integer, ConcurrentHashMap<Integer, BuildingFriends>> _buildingFriends = new HashMap<>();
|
public static HashMap<Integer, ConcurrentHashMap<Integer, BuildingFriends>> _buildingFriends = new HashMap<>();
|
||||||
public static HashMap<Integer, ConcurrentHashMap<Integer, Condemned>> _buildingCondemned = new HashMap<>();
|
public static HashMap<Integer, ConcurrentHashMap<Integer, Condemned>> _buildingCondemned = new HashMap<>();
|
||||||
public static HashMap<Integer, ArrayList<Vector3fImmutable>> _buildingPatrolPoints = new HashMap<>();
|
public static HashMap<Integer, ArrayList<Vector3fImmutable>> _buildingPatrolPoints = new HashMap<>();
|
||||||
|
|
||||||
public static int getAvailableSlot(Building building) {
|
public static int getAvailableSlot(Building building) {
|
||||||
|
|
||||||
ArrayList<BuildingLocation> slotLocations = _slotLocations.get(building.meshUUID);
|
ArrayList<BuildingLocation> slotLocations = _slotLocations.get(building.meshUUID);
|
||||||
@@ -145,10 +146,7 @@ public enum BuildingManager {
|
|||||||
if (Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isInnerCouncil(player.getGuildStatus()))
|
if (Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isInnerCouncil(player.getGuildStatus()))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isGuildLeader(player.getGuildStatus()))
|
return Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isGuildLeader(player.getGuildStatus());
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
|
|
||||||
//TODO test friends list once added
|
//TODO test friends list once added
|
||||||
//does not meet above criteria. Cannot access.
|
//does not meet above criteria. Cannot access.
|
||||||
@@ -1029,13 +1027,11 @@ public enum BuildingManager {
|
|||||||
|
|
||||||
// Build Path from vertices
|
// Build Path from vertices
|
||||||
|
|
||||||
for (Vector2f vertex : vertices) {
|
for (Vector2f vertex : vertices)
|
||||||
|
|
||||||
if (outPath.getCurrentPoint() == null)
|
if (outPath.getCurrentPoint() == null)
|
||||||
outPath.moveTo(vertex.x, vertex.y);
|
outPath.moveTo(vertex.x, vertex.y);
|
||||||
else
|
else
|
||||||
outPath.lineTo(vertex.x, vertex.y);
|
outPath.lineTo(vertex.x, vertex.y);
|
||||||
}
|
|
||||||
|
|
||||||
outPath.closePath();
|
outPath.closePath();
|
||||||
return outPath;
|
return outPath;
|
||||||
@@ -1047,7 +1043,8 @@ public enum BuildingManager {
|
|||||||
|
|
||||||
building.meshes = new ArrayList<>();
|
building.meshes = new ArrayList<>();
|
||||||
|
|
||||||
if(_hull_data.get(building.meshUUID) == null || _hull_data.get(building.meshUUID).size() < 1)
|
if (_hull_data.get(building.meshUUID) == null ||
|
||||||
|
_hull_data.get(building.meshUUID).size() < 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (Path2D.Float path : _hull_data.get(building.meshUUID)) {
|
for (Path2D.Float path : _hull_data.get(building.meshUUID)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user