2018-12-02 23:31:09 +00:00
|
|
|
From 0877ec92331121e0415d7c14dc63075ed294a3d3 Mon Sep 17 00:00:00 2001
|
2018-09-27 04:11:50 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Thu, 27 Sep 2018 00:08:31 -0400
|
|
|
|
Subject: [PATCH] Ignore Dimension NBT field in Entity data
|
|
|
|
|
|
|
|
Minecraft is trying to set Dimension Objects based on a Dimension ID
|
|
|
|
|
|
|
|
Dimension ID's for custom worlds are dynamically allocate dand not guaranteed
|
|
|
|
consistent.
|
|
|
|
|
|
|
|
This removes checking the NBT data, as the Entity will always have its
|
|
|
|
DimensionManager set to the world it is being placed into.
|
|
|
|
|
|
|
|
This fixes corrupt entities breaking chunk saving in custom worlds.
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2018-12-02 23:31:09 +00:00
|
|
|
index 552be8cd8..dd96b09e6 100644
|
2018-09-27 04:11:50 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2018-10-26 03:26:29 +00:00
|
|
|
@@ -1721,7 +1721,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
2018-09-27 04:11:50 +00:00
|
|
|
this.setAirTicks(nbttagcompound.getShort("Air"));
|
|
|
|
this.onGround = nbttagcompound.getBoolean("OnGround");
|
|
|
|
if (nbttagcompound.hasKey("Dimension")) {
|
|
|
|
- this.dimension = DimensionManager.a(nbttagcompound.getInt("Dimension"));
|
|
|
|
+ //this.dimension = DimensionManager.a(nbttagcompound.getInt("Dimension")); // Paper - always controlled by world
|
|
|
|
}
|
|
|
|
|
|
|
|
this.invulnerable = nbttagcompound.getBoolean("Invulnerable");
|
|
|
|
--
|
2018-10-21 19:27:53 +00:00
|
|
|
2.19.1
|
2018-09-27 04:11:50 +00:00
|
|
|
|