From f9143cf9ecaa4dcf78d1facf5eb78b1faad6fb83 Mon Sep 17 00:00:00 2001 From: Noah van der Aa Date: Sun, 15 Aug 2021 19:37:42 +0200 Subject: [PATCH] Don't fire entitymovevent for players. (#6402) --- patches/server/EntityMoveEvent.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/EntityMoveEvent.patch b/patches/server/EntityMoveEvent.patch index 132394119a..30e1dbaa2b 100644 --- a/patches/server/EntityMoveEvent.patch +++ b/patches/server/EntityMoveEvent.patch @@ -37,7 +37,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 this.pushEntities(); this.level.getProfiler().pop(); + // Paper start -+ if (((ServerLevel) this.level).hasEntityMoveEvent) { ++ if (((ServerLevel) this.level).hasEntityMoveEvent && !(this instanceof net.minecraft.world.entity.player.Player)) { + if (this.xo != getX() || this.yo != this.getY() || this.zo != this.getZ() || this.yRotO != this.getYRot() || this.xRotO != this.getXRot()) { + Location from = new Location(this.level.getWorld(), this.xo, this.yo, this.zo, this.yRotO, this.xRotO); + Location to = new Location (this.level.getWorld(), this.getX(), this.getY(), this.getZ(), this.getYRot(), this.getXRot());