diff options
author | Zach Brown <[email protected]> | 2018-10-24 14:41:04 -0400 |
---|---|---|
committer | Zach Brown <[email protected]> | 2018-10-24 14:41:04 -0400 |
commit | 4b457013722d335cb6b2d53b4915077ffcbfbbfd (patch) | |
tree | bcff9765a9733627f1fad6905e68e4ca6a6b68b4 /Spigot-Server-Patches | |
parent | 97960c6f28aa8119b5ad0ec337a977c35e5590cb (diff) | |
download | Paper-4b457013722d335cb6b2d53b4915077ffcbfbbfd.tar.gz Paper-4b457013722d335cb6b2d53b4915077ffcbfbbfd.zip |
Always write dimension NBT, even if we ignore it
DataPacks can use the dimension field for various things, so we should
still write this field to NBT, even if we ignore reading it ourselves.
Diffstat (limited to 'Spigot-Server-Patches')
-rw-r--r-- | Spigot-Server-Patches/0372-Ignore-Dimension-NBT-field-in-Entity-data.patch | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Spigot-Server-Patches/0372-Ignore-Dimension-NBT-field-in-Entity-data.patch b/Spigot-Server-Patches/0372-Ignore-Dimension-NBT-field-in-Entity-data.patch index 33e0d988a4..37224bd1db 100644 --- a/Spigot-Server-Patches/0372-Ignore-Dimension-NBT-field-in-Entity-data.patch +++ b/Spigot-Server-Patches/0372-Ignore-Dimension-NBT-field-in-Entity-data.patch @@ -17,15 +17,6 @@ diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/ index 7ac07ac07ac0..7ac07ac07ac0 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java -@@ -1583,7 +1583,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke - nbttagcompound.setShort("Fire", (short) this.fireTicks); - nbttagcompound.setShort("Air", (short) this.getAirTicks()); - nbttagcompound.setBoolean("OnGround", this.onGround); -- nbttagcompound.setInt("Dimension", this.dimension.getDimensionID()); -+ //nbttagcompound.setInt("Dimension", this.dimension.getDimensionID()); // Paper - always controlled by world - nbttagcompound.setBoolean("Invulnerable", this.invulnerable); - nbttagcompound.setInt("PortalCooldown", this.portalCooldown); - nbttagcompound.a("UUID", this.getUniqueID()); @@ -1720,7 +1720,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke this.setAirTicks(nbttagcompound.getShort("Air")); this.onGround = nbttagcompound.getBoolean("OnGround"); |