mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Fixed crash with bad holding slot
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user