forked from MagicBane/Server
bane cap sized persist through reboots
This commit is contained in:
@@ -323,8 +323,11 @@ public class City extends AbstractWorldObject {
|
||||
writer.putFloat(city.location.z);
|
||||
|
||||
//writer.putInt(city.siegesWithstood);
|
||||
writer.putInt(ZergManager.getBaneCapSize(city.getGuild()));
|
||||
|
||||
if(city.getBane() != null) {
|
||||
writer.putInt(city.siegesWithstood);
|
||||
} else{
|
||||
writer.putInt(ZergManager.getBaneCapSize(city.getGuild()));
|
||||
}
|
||||
writer.put((byte) 1);
|
||||
writer.put((byte) 0);
|
||||
writer.putInt(0x64);
|
||||
|
||||
Reference in New Issue
Block a user