diff options
author | Mariell Hoversholm <[email protected]> | 2021-06-10 20:34:06 +0200 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2021-06-12 23:30:56 +0100 |
commit | 2db85c553f0e1413612c1ea90bfae7f80d06f8dc (patch) | |
tree | 9dd1bd5dbdd0197b9ff120c725db82d6a02f5437 /Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch | |
parent | e04368045e2fe8e53a7b686e9bfb7c41766267be (diff) | |
download | Paper-2db85c553f0e1413612c1ea90bfae7f80d06f8dc.tar.gz Paper-2db85c553f0e1413612c1ea90bfae7f80d06f8dc.zip |
fix: origin world can be unknown while knowing location
We will now store the world ID. It may not be used if the entity is
loaded before the world in question is, but it might be used later on,
should the entity come after the world.
Signed-off-by: Mariell Hoversholm <[email protected]>
Diffstat (limited to 'Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch')
-rw-r--r-- | Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch b/Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch index b153f9d172..bcf3c024ca 100644 --- a/Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch +++ b/Spigot-Server-Patches/0507-Optimize-WorldBorder-collision-checks-and-air.patch @@ -5,10 +5,10 @@ Subject: [PATCH] Optimize WorldBorder collision checks and air diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java -index c50b89ee8f16821923933025bf19243771dd1604..27e5ba64ed6406c1ece318bf79fca0f261a77818 100644 +index d058675b800cb73f235d5675aea32bac175e0534..d7e1e09cd3053220a5413b498108d57f23ec94a4 100644 --- a/src/main/java/net/minecraft/world/entity/Entity.java +++ b/src/main/java/net/minecraft/world/entity/Entity.java -@@ -909,7 +909,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, ne +@@ -910,7 +910,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, ne AxisAlignedBB axisalignedbb = this.getBoundingBox(); VoxelShapeCollision voxelshapecollision = VoxelShapeCollision.a(this); VoxelShape voxelshape = this.world.getWorldBorder().c(); |