mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix return value of ItemHandlerHelper.insertItem being incorrect when destination was null. Closes #3840
This commit is contained in:
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++)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user