diff --git a/Spigot-Server-Patches/Entity-Origin-API.patch b/Spigot-Server-Patches/Entity-Origin-API.patch index 8ca460bb1d..964b2b1024 100644 --- a/Spigot-Server-Patches/Entity-Origin-API.patch +++ b/Spigot-Server-Patches/Entity-Origin-API.patch @@ -33,11 +33,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 // CraftBukkit end + // Paper start - Restore the entity's origin location -+ if (origin == null) { -+ NBTTagList originTag = nbttagcompound.getList("Paper.Origin", 6); -+ if (!originTag.isEmpty()) { -+ origin = new Location(world.getWorld(), originTag.e(0), originTag.e(1), originTag.e(2)); -+ } ++ NBTTagList originTag = nbttagcompound.getList("Paper.Origin", 6); ++ if (!originTag.isEmpty()) { ++ origin = new Location(world.getWorld(), originTag.e(0), originTag.e(1), originTag.e(2)); + } + // Paper end +