Bugfix and Crashfix

main
Astoria 2 years ago
parent de582168e6
commit 667033dd69

@ -33,7 +33,8 @@ public class MixinNetClientHandler implements INetHandler {
@Override
public void wiremodHandleOpenWiringGUI(WiremodWiringGuiPacket packet) {
((IEntityPlayer)this.mc.thePlayer).displayGuiWiring(((ToolWiring)this.mc.thePlayer.inventory.getCurrentItem().getItem()), (AbstractWireTileEntity) this.mc.theWorld.getBlockTileEntity(packet.x, packet.y, packet.z), packet.x2, packet.y2, packet.z2);
if(this.mc.thePlayer.inventory.getCurrentItem().getItem() instanceof ToolWiring)
((IEntityPlayer)this.mc.thePlayer).displayGuiWiring(((ToolWiring)this.mc.thePlayer.inventory.getCurrentItem().getItem()), (AbstractWireTileEntity) this.mc.theWorld.getBlockTileEntity(packet.x, packet.y, packet.z), packet.x2, packet.y2, packet.z2);
}
@Override

@ -77,9 +77,11 @@ public class MixinNetServerHandler implements INetHandler {
switch(packet.mode){
case 0:
wireEntity.outputs[0].floatvalue = packet.value;
wireEntity.update();
break;
case 1:
((ChipTileEntity)wireEntity).tickAmount = (int)packet.value;
wireEntity.update();
break;
}
}

Loading…
Cancel
Save