Fix OpenInv crash (#512)
This commit is contained in:
parent
04b7a110f8
commit
9010e2e302
|
@ -32,7 +32,7 @@ public abstract class InventoryMixin implements Container, IInventoryBridge, Pla
|
|||
@Shadow protected abstract boolean hasRemainingSpaceForItem(ItemStack stack1, ItemStack stack2);
|
||||
// @formatter:on
|
||||
|
||||
private List<HumanEntity> transactions = new ArrayList<>();
|
||||
private List<HumanEntity> transaction = new ArrayList<>();
|
||||
private int maxStack = MAX_STACK;
|
||||
|
||||
public int canHold(ItemStack stack) {
|
||||
|
@ -75,17 +75,17 @@ public abstract class InventoryMixin implements Container, IInventoryBridge, Pla
|
|||
|
||||
@Override
|
||||
public void onOpen(CraftHumanEntity who) {
|
||||
transactions.add(who);
|
||||
transaction.add(who);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClose(CraftHumanEntity who) {
|
||||
transactions.remove(who);
|
||||
transaction.remove(who);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<HumanEntity> getViewers() {
|
||||
return transactions;
|
||||
return transaction;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user