Utils ported
This commit is contained in:
@@ -163,7 +163,7 @@ public final class ContainerHelper<C extends AEBaseContainer, I> {
|
||||
|
||||
private I getHostFromPlayerInventory(PlayerEntity player, ContainerLocator locator) {
|
||||
|
||||
ItemStack it = player.inventory.getStackInSlot(locator.getItemIndex());
|
||||
ItemStack it = player.inventory.getStack(locator.getItemIndex());
|
||||
|
||||
if (it.isEmpty()) {
|
||||
AELog.debug("Cannot open container for player %s since they no longer hold the item in slot %d", player,
|
||||
|
||||
Reference in New Issue
Block a user