Send crafting monitor updates

This commit is contained in:
Raoul Van den Berge
2016-10-17 22:47:18 +02:00
parent a41b1ee7c2
commit e5ac59dc9a

View File

@@ -239,6 +239,8 @@ public class CraftingTask implements ICraftingTask {
ItemHandlerHelper.insertItem(inventory, toInsert, false); ItemHandlerHelper.insertItem(inventory, toInsert, false);
processable.getToInsert().pop(); processable.getToInsert().pop();
network.sendCraftingMonitorUpdate();
} }
} }
} }
@@ -250,6 +252,8 @@ public class CraftingTask implements ICraftingTask {
toTake.remove(stack, 1, true); toTake.remove(stack, 1, true);
took.add(stackExtracted); took.add(stackExtracted);
network.sendCraftingMonitorUpdate();
} }
break; break;
@@ -264,6 +268,8 @@ public class CraftingTask implements ICraftingTask {
toTakeFluids.remove(stack, stack.amount, true); toTakeFluids.remove(stack, stack.amount, true);
tookFluids.add(stackExtracted); tookFluids.add(stackExtracted);
network.sendCraftingMonitorUpdate();
} }
break; break;
@@ -277,6 +283,8 @@ public class CraftingTask implements ICraftingTask {
network.insertItem(insert, insert.stackSize, false); network.insertItem(insert, insert.stackSize, false);
toInsert.pop(); toInsert.pop();
network.sendCraftingMonitorUpdate();
} }
return toInsert.isEmpty(); return toInsert.isEmpty();