Fix Zombie ShouldBurnInDay API (#4268)
This commit is contained in:
@@ -35,18 +35,18 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
+ public boolean shouldBurnInDay() { return T_(); } // Paper - OBFHELPER
|
+ public boolean shouldBurnInDay() { return T_(); } // Paper - OBFHELPER
|
||||||
protected boolean T_() {
|
protected boolean T_() {
|
||||||
return true;
|
- return true;
|
||||||
}
|
+ return this.shouldBurnInDay; // Paper - use api value instead
|
||||||
|
+ }
|
||||||
|
+
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ public void setShouldBurnInDay(boolean shouldBurnInDay) {
|
+ public void setShouldBurnInDay(boolean shouldBurnInDay) {
|
||||||
+ this.shouldBurnInDay = shouldBurnInDay;
|
+ this.shouldBurnInDay = shouldBurnInDay;
|
||||||
+ }
|
}
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
|
||||||
@Override
|
@Override
|
||||||
public boolean damageEntity(DamageSource damagesource, float f) {
|
public boolean damageEntity(DamageSource damagesource, float f) {
|
||||||
if (!super.damageEntity(damagesource, f)) {
|
|
||||||
@@ -0,0 +0,0 @@ public class EntityZombie extends EntityMonster {
|
@@ -0,0 +0,0 @@ public class EntityZombie extends EntityMonster {
|
||||||
nbttagcompound.setBoolean("CanBreakDoors", this.eU());
|
nbttagcompound.setBoolean("CanBreakDoors", this.eU());
|
||||||
nbttagcompound.setInt("InWaterTime", this.isInWater() ? this.bt : -1);
|
nbttagcompound.setInt("InWaterTime", this.isInWater() ? this.bt : -1);
|
||||||
|
|||||||
Reference in New Issue
Block a user