diff options
author | Celtic Minstrel <celtic.minstrel.ca@some.place> | 2012-03-12 16:47:43 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-15 22:13:46 -0400 |
commit | 76cc488402e116e617071ea5c28902b897e6c9b3 (patch) | |
tree | 804ff60ee349e1f2d6779f539f34c2524d2172a4 /src/main/java/org/bukkit | |
parent | f27427ad196d096e2694446e47244908444d977d (diff) | |
download | craftbukkit-76cc488402e116e617071ea5c28902b897e6c9b3.tar craftbukkit-76cc488402e116e617071ea5c28902b897e6c9b3.tar.gz craftbukkit-76cc488402e116e617071ea5c28902b897e6c9b3.tar.lz craftbukkit-76cc488402e116e617071ea5c28902b897e6c9b3.tar.xz craftbukkit-76cc488402e116e617071ea5c28902b897e6c9b3.zip |
[Bleeding] DoubleChestInventory.getHolder() no longer returns null. Addresses BUKKIT-995
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java index 19ae6682..a10bd764 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java @@ -1,5 +1,6 @@ package org.bukkit.craftbukkit.inventory; +import org.bukkit.block.DoubleChest; import org.bukkit.inventory.DoubleChestInventory; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.ItemStack; @@ -50,4 +51,9 @@ public class CraftInventoryDoubleChest extends CraftInventory implements DoubleC right.setContents(rightItems); } } + + @Override + public DoubleChest getHolder() { + return new DoubleChest(this); + } } |