From 976ac75539c9b7d85d3a9737a119032126e26178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Dean=20K=C3=BCpper?= Date: Tue, 1 Sep 2020 22:25:06 +0200 Subject: [PATCH] Fix Zombie ShouldBurnInDay API (#4268) --- Spigot-Server-Patches/Add-more-Zombie-API.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Spigot-Server-Patches/Add-more-Zombie-API.patch b/Spigot-Server-Patches/Add-more-Zombie-API.patch index 24d5e42f6..e5fd2e3a9 100644 --- a/Spigot-Server-Patches/Add-more-Zombie-API.patch +++ b/Spigot-Server-Patches/Add-more-Zombie-API.patch @@ -35,18 +35,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + public boolean shouldBurnInDay() { return T_(); } // Paper - OBFHELPER protected boolean T_() { - return true; - } - +- return true; ++ return this.shouldBurnInDay; // Paper - use api value instead ++ } ++ + // Paper start + public void setShouldBurnInDay(boolean shouldBurnInDay) { + this.shouldBurnInDay = shouldBurnInDay; -+ } + } + // Paper end -+ + @Override public boolean damageEntity(DamageSource damagesource, float f) { - if (!super.damageEntity(damagesource, f)) { @@ -0,0 +0,0 @@ public class EntityZombie extends EntityMonster { nbttagcompound.setBoolean("CanBreakDoors", this.eU()); nbttagcompound.setInt("InWaterTime", this.isInWater() ? this.bt : -1);