Fix for SidedInvWrapper isItemValid using wrong slot (#5642)
This commit is contained in:
parent
d8137f7bcf
commit
f68fdcf703
1 changed files with 2 additions and 1 deletions
|
@ -245,6 +245,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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue