Fix return value of ItemHandlerHelper.insertItem being incorrect when destination was null. Closes #3840
This commit is contained in:
parent
c0eea379a4
commit
af2ca8e250
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ public class ItemHandlerHelper
|
||||||
public static ItemStack insertItem(IItemHandler dest, @Nonnull ItemStack stack, boolean simulate)
|
public static ItemStack insertItem(IItemHandler dest, @Nonnull ItemStack stack, boolean simulate)
|
||||||
{
|
{
|
||||||
if (dest == null || stack.isEmpty())
|
if (dest == null || stack.isEmpty())
|
||||||
return ItemStack.EMPTY;
|
return stack;
|
||||||
|
|
||||||
for (int i = 0; i < dest.getSlots(); i++)
|
for (int i = 0; i < dest.getSlots(); i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue