Fix another bug
This commit is contained in:
@@ -77,10 +77,9 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
|||||||
} else {
|
} else {
|
||||||
IItemHandler handler = getItemHandler();
|
IItemHandler handler = getItemHandler();
|
||||||
|
|
||||||
|
// @todo: something goes wrong here
|
||||||
if (handler != null) {
|
if (handler != null) {
|
||||||
if (ItemHandlerHelper.insertItem(handler, stack, false) == null) {
|
ItemHandlerHelper.insertItem(handler, stack, false);
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -118,10 +117,7 @@ public class TileExternalStorage extends TileMachine implements IStorageProvider
|
|||||||
|
|
||||||
handler.extractItem(i, quantity, false);
|
handler.extractItem(i, quantity, false);
|
||||||
|
|
||||||
ItemStack took = slot.copy();
|
return ItemHandlerHelper.copyStackWithSize(slot, quantity);
|
||||||
took.stackSize = quantity;
|
|
||||||
|
|
||||||
return took;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user