From f2d9f62537271f411341d37fddbe8326ac5dac67 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Tue, 25 Sep 2018 09:54:06 -0500 Subject: [PATCH] Honor EntityAgeable#ageLock (#1481) * test * Obfuscation helper * Fix #1459 --- .../Honor-EntityAgeable.ageLock.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Spigot-Server-Patches/Honor-EntityAgeable.ageLock.patch diff --git a/Spigot-Server-Patches/Honor-EntityAgeable.ageLock.patch b/Spigot-Server-Patches/Honor-EntityAgeable.ageLock.patch new file mode 100644 index 000000000..cc98ad848 --- /dev/null +++ b/Spigot-Server-Patches/Honor-EntityAgeable.ageLock.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: BillyGalbreath +Date: Sun, 23 Sep 2018 20:59:53 -0500 +Subject: [PATCH] Honor EntityAgeable.ageLock + + +diff --git a/src/main/java/net/minecraft/server/EntityAgeable.java b/src/main/java/net/minecraft/server/EntityAgeable.java +index 1d7c998aa..a11bdaadc 100644 +--- a/src/main/java/net/minecraft/server/EntityAgeable.java ++++ b/src/main/java/net/minecraft/server/EntityAgeable.java +@@ -0,0 +0,0 @@ public abstract class EntityAgeable extends EntityCreature { + } + + public void setAge(int i, boolean flag) { ++ if (ageLocked) return; // Paper - GH-1459 + int j = this.getAge(); + int k = j; + +-- \ No newline at end of file