From 407496a0adefcf61088d23d712168a652d91a7d2 Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 3 Nov 2015 20:45:06 -0800 Subject: [PATCH] Fix Alveary bee effects --- src/main/java/forestry/apiculture/BeekeepingLogic.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/forestry/apiculture/BeekeepingLogic.java b/src/main/java/forestry/apiculture/BeekeepingLogic.java index 5e01953fb..de80f55fb 100755 --- a/src/main/java/forestry/apiculture/BeekeepingLogic.java +++ b/src/main/java/forestry/apiculture/BeekeepingLogic.java @@ -422,10 +422,10 @@ public class BeekeepingLogic implements IBeekeepingLogic, IStreamable { public void syncToClient() { World world = housing.getWorld(); if (world != null && !world.isRemote) { - if (housing instanceof TileEntity) { - Proxies.net.sendNetworkPacket(new PacketBeeLogicActive(housing), world); - } else if (housing instanceof Entity) { + if (housing instanceof Entity) { Proxies.net.sendNetworkPacket(new PacketBeeLogicActiveEntity(housing, (Entity) housing), world); + } else { + Proxies.net.sendNetworkPacket(new PacketBeeLogicActive(housing), world); } } }