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() {
|
public ItemStack b() {
|
||||||
|
if (this.c < this.a.length) {
|
||||||
return this.a[this.c];
|
return this.a[this.c];
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private int d(int i) {
|
private int d(int i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user