mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 13:36:44 +01:00
Fixed crash with bad holding slot
This commit is contained in:
parent
63f0de5128
commit
f056fad765
1 changed files with 5 additions and 1 deletions
|
@ -24,7 +24,11 @@ public class InventoryPlayer implements IInventory {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack b() {
|
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) {
|
private int d(int i) {
|
||||||
|
|
Loading…
Reference in a new issue