mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-14 03:21:57 +01:00
Always try to load entity origin location from new NBT tag
This commit is contained in:
parent
bcc957e753
commit
fc3f55ddc8
@ -33,12 +33,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
+ // Paper start - Restore the entity's origin location
|
+ // Paper start - Restore the entity's origin location
|
||||||
+ if (origin == null) {
|
|
||||||
+ NBTTagList originTag = nbttagcompound.getList("Paper.Origin", 6);
|
+ NBTTagList originTag = nbttagcompound.getList("Paper.Origin", 6);
|
||||||
+ if (!originTag.isEmpty()) {
|
+ if (!originTag.isEmpty()) {
|
||||||
+ origin = new Location(world.getWorld(), originTag.e(0), originTag.e(1), originTag.e(2));
|
+ origin = new Location(world.getWorld(), originTag.e(0), originTag.e(1), originTag.e(2));
|
||||||
+ }
|
+ }
|
||||||
+ }
|
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+
|
+
|
||||||
} catch (Throwable throwable) {
|
} catch (Throwable throwable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user