Forestry

Forestry

65M Downloads

A Probable Bug

temp1011 opened this issue ยท 0 comments

commented

public static class Handler implements IForestryPacketHandlerClient {
@Override
public void onPacketData(PacketBufferForestry data, EntityPlayer player) {
BlockPos pos = data.readBlockPos();
boolean active = data.readBoolean();
WorldClient world = Minecraft.getMinecraft().world;
TileEntity tile = TileUtil.getTile(world, pos);
if (tile instanceof IActivatable) {
((IActivatable) tile).setActive(active);
} else if (tile instanceof IMultiblockComponent) {
IMultiblockComponent component = (IMultiblockComponent) tile;
if (component.getMultiblockLogic().isConnected() && component.getMultiblockLogic().getController() instanceof IActivatable) {
((IActivatable) component.getMultiblockLogic().getController()).setActive(active);
}
}
}
}

Due to the constructor of this packet I belive the tile is always IActivatable so the part about multiblocks is never called.

Feels like there is not much reason to not switch networking to SimpleImpl anyway.