Commits

md_5 authored 3f917b07bb5
Fix horse saddle API broken in 1.21.5 update
No tags

nms-patches/net/minecraft/world/entity/EntityLiving.patch

Modified
30 30 +import org.bukkit.event.entity.EntityRemoveEvent;
31 31 +import org.bukkit.event.entity.EntityResurrectEvent;
32 32 +import org.bukkit.event.entity.EntityTeleportEvent;
33 33 +import org.bukkit.event.player.PlayerDropItemEvent;
34 34 +import org.bukkit.event.player.PlayerItemConsumeEvent;
35 35 +// CraftBukkit end
36 36 +
37 37 public abstract class EntityLiving extends Entity implements Attackable {
38 38
39 39 private static final Logger LOGGER = LogUtils.getLogger();
40 -@@ -246,6 +276,19 @@
40 +@@ -245,7 +275,20 @@
41 + protected BehaviorController<?> brain;
41 42 protected boolean skipDropExperience;
42 43 private final EnumMap<EnumItemSlot, Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>>> activeLocationDependentEnchantments;
43 - protected final EntityEquipment equipment;
44 +- protected final EntityEquipment equipment;
45 ++ public final EntityEquipment equipment;
44 46 + // CraftBukkit start
45 47 + public int expToDrop;
46 48 + public ArrayList<org.bukkit.inventory.ItemStack> drops = new ArrayList<org.bukkit.inventory.ItemStack>();
47 49 + public final org.bukkit.craftbukkit.attribute.CraftAttributeMap craftAttributes;
48 50 + public boolean collides = true;
49 51 + public Set<UUID> collidableExemptions = new HashSet<>();
50 52 + public boolean bukkitPickUpLoot;
51 53 +
52 54 + @Override
53 55 + public float getBukkitYaw() {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut