Fixed crash with bad holding slot

This commit is contained in:
Dinnerbone 2011-03-09 16:58:31 +00:00
parent 63f0de5128
commit f056fad765

View File

@ -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) {