Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Fix setCarryingChest not resizing horse inventory
Dieser Commit ist enthalten in:
Ursprung
0b154b1852
Commit
691628ab5c
@ -16,8 +16,12 @@
|
|||||||
|
|
||||||
public EntityHorseAbstract(World world) {
|
public EntityHorseAbstract(World world) {
|
||||||
super(world);
|
super(world);
|
||||||
@@ -214,7 +216,7 @@
|
@@ -211,10 +213,10 @@
|
||||||
protected void dx() {
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
- protected void dx() {
|
||||||
|
+ public void dx() { // PAIL: protected-> public, rename
|
||||||
InventoryHorseChest inventoryhorsechest = this.inventoryChest;
|
InventoryHorseChest inventoryhorsechest = this.inventoryChest;
|
||||||
|
|
||||||
- this.inventoryChest = new InventoryHorseChest("HorseChest", this.di());
|
- this.inventoryChest = new InventoryHorseChest("HorseChest", this.di());
|
||||||
|
@ -22,6 +22,8 @@ public abstract class CraftChestedHorse extends CraftAbstractHorse implements Ch
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setCarryingChest(boolean chest) {
|
public void setCarryingChest(boolean chest) {
|
||||||
|
if (chest == isCarryingChest()) return;
|
||||||
getHandle().setCarryingChest(chest);
|
getHandle().setCarryingChest(chest);
|
||||||
|
getHandle().dx();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren