mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Fix for SidedInvWrapper isItemValid using wrong slot (#5642)
This commit is contained in:
1 parent
75788f63ee
commit
45cadab7c5
1 file changed
+2
-1
@@ -234,6 +234,7 @@ public class SidedInvWrapper implements IItemHandlerModifiable
|
||||
@Override
|
||||
public boolean isItemValid(int slot, @Nonnull ItemStack stack)
|
||||
{
|
||||
return inv.isItemValidForSlot(slot, stack);
|
||||
int slot1 = getSlot(inv, slot, side);
|
||||
return slot1 == -1 ? false : inv.isItemValidForSlot(slot1, stack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user