Fix spawnreason saving
This commit is contained in:
@@ -70,6 +70,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
public com.destroystokyo.paper.loottable.PaperLootableInventoryData lootableData; // Paper
|
public com.destroystokyo.paper.loottable.PaperLootableInventoryData lootableData; // Paper
|
||||||
private CraftEntity bukkitEntity;
|
private CraftEntity bukkitEntity;
|
||||||
|
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
||||||
|
}
|
||||||
|
nbttagcompound.put("Paper.Origin", this.newDoubleList(origin.getX(), origin.getY(), origin.getZ()));
|
||||||
|
}
|
||||||
|
+ if (spawnReason != null) {
|
||||||
|
+ nbttagcompound.putString("Paper.SpawnReason", spawnReason.name());
|
||||||
|
+ }
|
||||||
|
// Save entity's from mob spawner status
|
||||||
|
if (spawnedViaMobSpawner) {
|
||||||
|
nbttagcompound.putBoolean("Paper.FromMobSpawner", true);
|
||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource, S
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user