mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Store owning Horse in horse inventory. Fixes BUKKIT-4586
This commit is contained in:
1 parent
0a9758ae54
commit
5bfd599e9f
2 files changed
+8
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user