Fix mobs not burning from summon command (#5961)
This commit is contained in:
parent
5298e2045a
commit
2c17a86e82
1 changed files with 8 additions and 2 deletions
|
@ -30,7 +30,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public void readAdditionalSaveData(CompoundTag nbt) {
|
public void readAdditionalSaveData(CompoundTag nbt) {
|
||||||
super.readAdditionalSaveData(nbt);
|
super.readAdditionalSaveData(nbt);
|
||||||
this.reassessWeaponGoal();
|
this.reassessWeaponGoal();
|
||||||
+ this.shouldBurnInDay = nbt.getBoolean("Paper.ShouldBurnInDay"); // Paper
|
+ // Paper start
|
||||||
|
+ if (nbt.contains("Paper.ShouldBurnInDay")) {
|
||||||
|
+ this.shouldBurnInDay = nbt.getBoolean("Paper.ShouldBurnInDay");
|
||||||
|
+ }
|
||||||
|
+ // Paper end
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
|
@ -60,7 +64,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
if (nbt.hasUUID("Paper.SpawningEntity")) {
|
if (nbt.hasUUID("Paper.SpawningEntity")) {
|
||||||
this.spawningEntity = nbt.getUUID("Paper.SpawningEntity");
|
this.spawningEntity = nbt.getUUID("Paper.SpawningEntity");
|
||||||
}
|
}
|
||||||
|
+ if (nbt.contains("Paper.ShouldBurnInDay")) {
|
||||||
+ this.shouldBurnInDay = nbt.getBoolean("Paper.ShouldBurnInDay");
|
+ this.shouldBurnInDay = nbt.getBoolean("Paper.ShouldBurnInDay");
|
||||||
|
+ }
|
||||||
// Paper end
|
// Paper end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue