From 799779e4b19605dc7d7befd0b530caf640214d14 Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Sat, 27 Apr 2013 04:40:05 -0500 Subject: Update CraftBukkit to Minecraft 1.5.2 --- .../net/minecraft/server/TileEntityBeacon.java | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/main/java/net/minecraft/server/TileEntityBeacon.java') diff --git a/src/main/java/net/minecraft/server/TileEntityBeacon.java b/src/main/java/net/minecraft/server/TileEntityBeacon.java index 4ceb57e5..36008f28 100644 --- a/src/main/java/net/minecraft/server/TileEntityBeacon.java +++ b/src/main/java/net/minecraft/server/TileEntityBeacon.java @@ -15,14 +15,14 @@ public class TileEntityBeacon extends TileEntity implements IInventory { private int e = -1; private int f; private int g; - private ItemStack h; + private ItemStack inventorySlot; private String i; // CraftBukkit start public List transaction = new java.util.ArrayList(); private int maxStack = MAX_STACK; public ItemStack[] getContents() { - return new ItemStack[] { this.h }; // Should be inventorySlot + return new ItemStack[] { this.inventorySlot }; } public void onOpen(CraftHumanEntity who) { @@ -198,19 +198,19 @@ public class TileEntityBeacon extends TileEntity implements IInventory { } public ItemStack getItem(int i) { - return i == 0 ? this.h : null; + return i == 0 ? this.inventorySlot : null; } public ItemStack splitStack(int i, int j) { - if (i == 0 && this.h != null) { - if (j >= this.h.count) { - ItemStack itemstack = this.h; + if (i == 0 && this.inventorySlot != null) { + if (j >= this.inventorySlot.count) { + ItemStack itemstack = this.inventorySlot; - this.h = null; + this.inventorySlot = null; return itemstack; } else { - this.h.count -= j; - return new ItemStack(this.h.id, j, this.h.getData()); + this.inventorySlot.count -= j; + return new ItemStack(this.inventorySlot.id, j, this.inventorySlot.getData()); } } else { return null; @@ -218,10 +218,10 @@ public class TileEntityBeacon extends TileEntity implements IInventory { } public ItemStack splitWithoutUpdate(int i) { - if (i == 0 && this.h != null) { - ItemStack itemstack = this.h; + if (i == 0 && this.inventorySlot != null) { + ItemStack itemstack = this.inventorySlot; - this.h = null; + this.inventorySlot = null; return itemstack; } else { return null; @@ -230,7 +230,7 @@ public class TileEntityBeacon extends TileEntity implements IInventory { public void setItem(int i, ItemStack itemstack) { if (i == 0) { - this.h = itemstack; + this.inventorySlot = itemstack; } } -- cgit v1.2.3