aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-05-26 12:51:15 -0700
committerGitHub <[email protected]>2024-05-26 12:51:15 -0700
commit9774a52d110f29e4be956d1aad7bb4c99b50d21d (patch)
tree87b4d46a37670e8fadfae8bc4924fcf633616457 /patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch
parentca50b87947e0aca6017a7d4b242d892b930ae2c2 (diff)
downloadPaper-9774a52d110f29e4be956d1aad7bb4c99b50d21d.tar.gz
Paper-9774a52d110f29e4be956d1aad7bb4c99b50d21d.zip
fix and cleanup loot table patches (#10100)
* fix and cleanup loot table patches * fixes
Diffstat (limited to 'patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch')
-rw-r--r--patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch b/patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch
index ba6a56db47..84279fedca 100644
--- a/patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch
+++ b/patches/server/0380-Ensure-Entity-position-and-AABB-are-never-invalid.patch
@@ -6,10 +6,10 @@ Subject: [PATCH] Ensure Entity position and AABB are never invalid
Co-authored-by: Spottedleaf <[email protected]>
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
-index 6fcaa0e343b6f4e0e80eecdb7ea3e70d98272280..d0e5769b7abf255ac5d64c499e872ecb9acf4829 100644
+index 996ca6762fe45ee1c2fa2392ed6a050be9df5ac6..184d8bdca8aa06b6a1f00bab03e8c2688a391663 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
-@@ -665,8 +665,8 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
+@@ -664,8 +664,8 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
}
public void setPos(double x, double y, double z) {
@@ -20,7 +20,7 @@ index 6fcaa0e343b6f4e0e80eecdb7ea3e70d98272280..d0e5769b7abf255ac5d64c499e872ecb
}
protected AABB makeBoundingBox() {
-@@ -4181,7 +4181,29 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
+@@ -4180,7 +4180,29 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
return this.getZ((2.0D * this.random.nextDouble() - 1.0D) * widthScale);
}
@@ -50,7 +50,7 @@ index 6fcaa0e343b6f4e0e80eecdb7ea3e70d98272280..d0e5769b7abf255ac5d64c499e872ecb
if (this.position.x != x || this.position.y != y || this.position.z != z) {
this.position = new Vec3(x, y, z);
int i = Mth.floor(x);
-@@ -4199,6 +4221,12 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
+@@ -4198,6 +4220,12 @@ public abstract class Entity implements SyncedDataHolder, Nameable, EntityAccess
this.levelCallback.onMove();
}