1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-25 00:07:36 +01:00

Fix setCarryingChest not resizing horse inventory

This commit is contained in:
md_5 2016-11-21 21:56:17 +11:00
parent 0b154b1852
commit 691628ab5c
2 changed files with 8 additions and 2 deletions
nms-patches
src/main/java/org/bukkit/craftbukkit/entity

View file

@ -16,8 +16,12 @@
public EntityHorseAbstract(World world) {
super(world);
@@ -214,7 +216,7 @@
protected void dx() {
@@ -211,10 +213,10 @@
return 2;
}
- protected void dx() {
+ public void dx() { // PAIL: protected-> public, rename
InventoryHorseChest inventoryhorsechest = this.inventoryChest;
- this.inventoryChest = new InventoryHorseChest("HorseChest", this.di());

View file

@ -22,6 +22,8 @@ public abstract class CraftChestedHorse extends CraftAbstractHorse implements Ch
@Override
public void setCarryingChest(boolean chest) {
if (chest == isCarryingChest()) return;
getHandle().setCarryingChest(chest);
getHandle().dx();
}
}