mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
Fixed crash with bad holding slot
This commit is contained in:
parent
63f0de5128
commit
f056fad765
@ -24,7 +24,11 @@ public class InventoryPlayer implements IInventory {
|
||||
}
|
||||
|
||||
public ItemStack b() {
|
||||
return this.a[this.c];
|
||||
if (this.c < this.a.length) {
|
||||
return this.a[this.c];
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private int d(int i) {
|
||||
|
Loading…
Reference in New Issue
Block a user