Update CraftBukkit to Minecraft 1.4(.2).
This commit is contained in:
@@ -39,7 +39,7 @@ public class InventoryCraftResult implements IInventory {
|
||||
}
|
||||
|
||||
public ItemStack getItem(int i) {
|
||||
return this.items[i];
|
||||
return this.items[0];
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@@ -47,10 +47,10 @@ public class InventoryCraftResult implements IInventory {
|
||||
}
|
||||
|
||||
public ItemStack splitStack(int i, int j) {
|
||||
if (this.items[i] != null) {
|
||||
ItemStack itemstack = this.items[i];
|
||||
if (this.items[0] != null) {
|
||||
ItemStack itemstack = this.items[0];
|
||||
|
||||
this.items[i] = null;
|
||||
this.items[0] = null;
|
||||
return itemstack;
|
||||
} else {
|
||||
return null;
|
||||
@@ -58,10 +58,10 @@ public class InventoryCraftResult implements IInventory {
|
||||
}
|
||||
|
||||
public ItemStack splitWithoutUpdate(int i) {
|
||||
if (this.items[i] != null) {
|
||||
ItemStack itemstack = this.items[i];
|
||||
if (this.items[0] != null) {
|
||||
ItemStack itemstack = this.items[0];
|
||||
|
||||
this.items[i] = null;
|
||||
this.items[0] = null;
|
||||
return itemstack;
|
||||
} else {
|
||||
return null;
|
||||
@@ -69,7 +69,7 @@ public class InventoryCraftResult implements IInventory {
|
||||
}
|
||||
|
||||
public void setItem(int i, ItemStack itemstack) {
|
||||
this.items[i] = itemstack;
|
||||
this.items[0] = itemstack;
|
||||
}
|
||||
|
||||
public int getMaxStackSize() {
|
||||
|
||||
Reference in New Issue
Block a user