Fix return value of ItemHandlerHelper.insertItem being incorrect when destination was null. Closes #3840

This commit is contained in:
LexManos committed 2017-04-25 12:06:23 -07:00
1 parent c0eea379a4
commit af2ca8e250
1 file changed
+1 -1
@@ -38,7 +38,7 @@ public class ItemHandlerHelper
public static ItemStack insertItem(IItemHandler dest, @Nonnull ItemStack stack, boolean simulate)
{
if (dest == null || stack.isEmpty())
return ItemStack.EMPTY;
return stack;
for (int i = 0; i < dest.getSlots(); i++)
{