Fix #779 Village apiaries are inactive, lose inventory after reload

This commit is contained in:
mezz committed 2015-08-01 00:16:55 -07:00
1 parent 3a5ccd87cd
commit 63ba9903ea
6 files changed
+29 -20

No files matched your search

@@ -147,13 +147,7 @@ public class BeekeepingLogic implements IBeekeepingLogic, IStreamable {
}
this.active = active;
if (!housing.getWorld().isRemote) {
Proxies.net.sendNetworkPacket(new PacketBeekeepingLogicActive(housing), housing.getWorld());
}
}
public boolean isActive() {
return active;
syncToClient();
}
/* UPDATING */
@@ -418,6 +412,14 @@ public class BeekeepingLogic implements IBeekeepingLogic, IStreamable {
/* CLIENT */
@Override
public void syncToClient() {
World world = housing.getWorld();
if (world != null && !world.isRemote) {
Proxies.net.sendNetworkPacket(new PacketBeekeepingLogicActive(housing), world);
}
}
@Override
public int getBeeProgressPercent() {
if (beeProgressMax == 0) {