Fix #5856 Entity origin (#5861)

This commit is contained in:
djytw
2021-06-18 03:37:23 +00:00
parent 1942e47836
commit 5e9ba09e6d
3 changed files with 7 additions and 7 deletions

View File

@@ -43,6 +43,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
entity.valid = true; // CraftBukkit
+ ServerLevel.this.getChunkSource().addEntity(entity);
}
public void onTrackingEnd(Entity entity) {
// Paper start - Set origin location when the entity is being added to the world
if (entity.getOriginVector() == null) {
entity.setOrigin(entity.getBukkitEntity().getLocation());