Fix not actually taking items

This commit is contained in:
Raoul Van den Berge
2016-10-05 21:23:26 +02:00
parent 128d65d1a4
commit f57dc0c3d3

View File

@@ -113,7 +113,7 @@ public class CraftingTask {
public boolean update() {
for (ProcessablePattern processable : toProcess) {
if (processable.pattern.getContainer().getFacingInventory() != null && !processable.toInsert.isEmpty()) {
ItemStack toInsert = processable.toInsert.peek();
ItemStack toInsert = NetworkUtils.extractItem(network, processable.toInsert.peek(), 1);
if (ItemHandlerHelper.insertItem(processable.pattern.getContainer().getFacingInventory(), toInsert, true) == null) {
ItemHandlerHelper.insertItem(processable.pattern.getContainer().getFacingInventory(), toInsert, false);