Fixed synchronization with container

This commit is contained in:
marcin212 committed 2017-06-13 13:12:18 +02:00
1 parent 7ddd7d976e
commit 81a2268e1d
1 file changed
+1
@@ -222,6 +222,7 @@ public class ContainerCraftGUI extends Container {
@Override
public void detectAndSendChanges() {
super.detectAndSendChanges();
if(crafters.size()<=0) return;
final ITankMachine tanks = Machine.getInterface(ITankMachine.class, this.window.getInventory());
final IPoweredMachine powered = Machine.getInterface(IPoweredMachine.class, this.window.getInventory());
final IErrorStateSource error = Machine.getInterface(IErrorStateSource.class, this.window.getInventory());