Fix Zombie ShouldBurnInDay API (#4268)

This commit is contained in:
Joshua Dean Küpper 2020-09-01 22:25:06 +02:00
parent 46ddee2892
commit 976ac75539

View File

@ -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);