diff options
author | Wesley Wolfe <weswolf@aol.com> | 2013-07-25 18:04:09 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-07-25 18:04:09 -0500 |
commit | 5bfd599e9fa2ec8daa92e5c3df04a4b2fb63c282 (patch) | |
tree | cfedc4a82e9939cace8262eaf3b16b0650c8a566 /src/main/java/net/minecraft/server/EntityHorse.java | |
parent | 0a9758ae548c03938be2e3e41cdd6f0fc1db8183 (diff) | |
download | craftbukkit-5bfd599e9fa2ec8daa92e5c3df04a4b2fb63c282.tar craftbukkit-5bfd599e9fa2ec8daa92e5c3df04a4b2fb63c282.tar.gz craftbukkit-5bfd599e9fa2ec8daa92e5c3df04a4b2fb63c282.tar.lz craftbukkit-5bfd599e9fa2ec8daa92e5c3df04a4b2fb63c282.tar.xz craftbukkit-5bfd599e9fa2ec8daa92e5c3df04a4b2fb63c282.zip |
Store owning Horse in horse inventory. Fixes BUKKIT-4586
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityHorse.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityHorse.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityHorse.java b/src/main/java/net/minecraft/server/EntityHorse.java index fb411ed4..bc7acb97 100644 --- a/src/main/java/net/minecraft/server/EntityHorse.java +++ b/src/main/java/net/minecraft/server/EntityHorse.java @@ -328,7 +328,7 @@ public class EntityHorse extends EntityAnimal implements IInventoryListener { public void cH() { // CraftBukkit - private -> public InventoryHorseChest inventoryhorsechest = this.inventoryChest; - this.inventoryChest = new InventoryHorseChest("HorseChest", this.cG()); + this.inventoryChest = new InventoryHorseChest("HorseChest", this.cG(), this); // CraftBukkit - add this horse this.inventoryChest.a(this.getLocalizedName()); if (inventoryhorsechest != null) { inventoryhorsechest.b(this); |