diff --git a/paper-server/patches/sources/net/minecraft/world/entity/Entity.java.patch b/paper-server/patches/sources/net/minecraft/world/entity/Entity.java.patch index 9953d5da41d4..8b7b2ab241a7 100644 --- a/paper-server/patches/sources/net/minecraft/world/entity/Entity.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/entity/Entity.java.patch @@ -854,15 +854,13 @@ this.customData = input.read("data", CustomData.CODEC).orElse(CustomData.EMPTY); this.tags.clear(); input.read("Tags", TAG_LIST_CODEC).ifPresent(this.tags::addAll); -@@ -2104,6 +_,58 @@ +@@ -2104,6 +_,56 @@ } else { throw new IllegalStateException("Entity has invalid rotation"); } + // CraftBukkit start + // Spigot start -+ if (this instanceof net.minecraft.world.entity.LivingEntity) { -+ this.totalEntityAge = input.getIntOr("Spigot.ticksLived", 0); // Paper -+ } ++ this.totalEntityAge = input.getIntOr("Spigot.ticksLived", 0); // Paper + // Spigot end + this.persist = input.getBooleanOr("Bukkit.persist", true); + this.visibleByDefault = input.getBooleanOr("Bukkit.visibleByDefault", true);