SPIGOT-7666: Fix access to llama and horse special slot

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-05-10 19:23:01 +10:00
parent 54f230de84
commit 317917800c
4 changed files with 16 additions and 8 deletions

View File

@@ -59,7 +59,7 @@ public class CraftHorse extends CraftAbstractHorse implements Horse {
@Override
public HorseInventory getInventory() {
return new CraftInventoryHorse(getHandle().inventory);
return new CraftInventoryHorse(getHandle().inventory, getHandle().getBodyArmorAccess());
}
@Override

View File

@@ -34,7 +34,7 @@ public class CraftLlama extends CraftChestedHorse implements Llama {
@Override
public LlamaInventory getInventory() {
return new CraftInventoryLlama(getHandle().inventory);
return new CraftInventoryLlama(getHandle().inventory, getHandle().getBodyArmorAccess());
}
@Override