From 3b46222c54977031db68a40d1345b29fbb69463c Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Tue, 24 Jan 2012 22:06:37 +0100 Subject: [PATCH] Persist locking of an animal's age to disk --- src/main/java/net/minecraft/server/EntityAnimal.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityAnimal.java b/src/main/java/net/minecraft/server/EntityAnimal.java index 5dda200e5b..80e416ecdb 100644 --- a/src/main/java/net/minecraft/server/EntityAnimal.java +++ b/src/main/java/net/minecraft/server/EntityAnimal.java @@ -149,12 +149,14 @@ public abstract class EntityAnimal extends EntityCreature implements IAnimal { super.b(nbttagcompound); nbttagcompound.setInt("Age", this.getAge()); nbttagcompound.setInt("InLove", this.love); + nbttagcompound.setBoolean("AgeLocked", this.ageLocked); // CraftBukkit } public void a(NBTTagCompound nbttagcompound) { super.a(nbttagcompound); this.setAge(nbttagcompound.getInt("Age")); this.love = nbttagcompound.getInt("InLove"); + this.ageLocked = nbttagcompound.getBoolean("AgeLocked"); // CraftBukkit } protected Entity findTarget() {