mine audit
This commit is contained in:
@@ -36,8 +36,8 @@ public class Mine extends AbstractGameObject {
|
|||||||
|
|
||||||
public static ConcurrentHashMap<Mine, Integer> mineMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
|
public static ConcurrentHashMap<Mine, Integer> mineMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
|
||||||
public static ConcurrentHashMap<Integer, Mine> towerMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
|
public static ConcurrentHashMap<Integer, Mine> towerMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
|
||||||
private final String zoneName;
|
private String zoneName;
|
||||||
private final Zone parentZone;
|
private Zone parentZone;
|
||||||
public boolean isActive = false;
|
public boolean isActive = false;
|
||||||
public PlayerCharacter lastClaimer;
|
public PlayerCharacter lastClaimer;
|
||||||
public boolean wasClaimed = false;
|
public boolean wasClaimed = false;
|
||||||
@@ -78,9 +78,14 @@ public class Mine extends AbstractGameObject {
|
|||||||
int ownerUID = rs.getInt("mine_ownerUID");
|
int ownerUID = rs.getInt("mine_ownerUID");
|
||||||
this.buildingID = rs.getInt("mine_buildingUID");
|
this.buildingID = rs.getInt("mine_buildingUID");
|
||||||
this.flags = rs.getInt("flags");
|
this.flags = rs.getInt("flags");
|
||||||
int parent = rs.getInt("parent");
|
//int parent = rs.getInt("parent");
|
||||||
this.parentZone = ZoneManager.getZoneByUUID(parent);
|
Building tower = BuildingManager.getBuildingFromCache(rs.getInt("mine_buildingUID"));
|
||||||
|
for(Zone zone : ZoneManager.getAllZonesIn(tower.loc)){
|
||||||
|
if(zone.isMacroZone()) {
|
||||||
|
this.parentZone = zone;
|
||||||
this.zoneName = this.parentZone.getParent().getName();
|
this.zoneName = this.parentZone.getParent().getName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.owningGuild = Guild.getGuild(ownerUID);
|
this.owningGuild = Guild.getGuild(ownerUID);
|
||||||
Guild nation = null;
|
Guild nation = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user