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

This commit is contained in:
LexManos 2017-04-25 12:06:23 -07:00
parent c0eea379a4
commit af2ca8e250
1 changed files with 1 additions and 1 deletions

View File

@ -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++)
{