summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2012-01-24 22:06:37 +0100
committerErik Broes <erikbroes@grum.nl>2012-01-24 22:06:37 +0100
commit3b46222c54977031db68a40d1345b29fbb69463c (patch)
tree5b3ed7e42f396abbeb78b418e5f8be83c876d59b /src/main/java
parent94231f1ecf2aa68b5bca030f187d8248d9810281 (diff)
downloadcraftbukkit-3b46222c54977031db68a40d1345b29fbb69463c.tar
craftbukkit-3b46222c54977031db68a40d1345b29fbb69463c.tar.gz
craftbukkit-3b46222c54977031db68a40d1345b29fbb69463c.tar.lz
craftbukkit-3b46222c54977031db68a40d1345b29fbb69463c.tar.xz
craftbukkit-3b46222c54977031db68a40d1345b29fbb69463c.zip
Persist locking of an animal's age to disk
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/net/minecraft/server/EntityAnimal.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityAnimal.java b/src/main/java/net/minecraft/server/EntityAnimal.java
index 5dda200e..80e416ec 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() {