Readd mc-4 fix

This commit is contained in:
Owen1212055
2022-06-11 10:41:59 +02:00
parent 1762939321
commit 624ed50aa0
3 changed files with 53 additions and 4 deletions

View File

@@ -194,8 +194,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
public void setDeltaMovement(double x, double y, double z) {
@@ -0,0 +0,0 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
public final void setPosRaw(double x, double y, double z, boolean forceBoundingBoxUpdate) {
// Paper end
}
// Paper end - fix MC-4
if (this.position.x != x || this.position.y != y || this.position.z != z) {
+ synchronized (this.posLock) { // Paper
this.position = new Vec3(x, y, z);