aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0841-Guard-against-invalid-entity-positions.patch
diff options
context:
space:
mode:
authorSoSeDiK <[email protected]>2022-10-11 15:43:10 +0300
committerGitHub <[email protected]>2022-10-11 14:43:10 +0200
commitb097a241c0eed9235be1dae195cb7929fb701527 (patch)
tree48482501a251e9f2fbf36d8c359155fa2a542801 /patches/server/0841-Guard-against-invalid-entity-positions.patch
parent57555b8c6afc87542b26559e40381b4f0ba508bd (diff)
downloadPaper-b097a241c0eed9235be1dae195cb7929fb701527.tar.gz
Paper-b097a241c0eed9235be1dae195cb7929fb701527.zip
Expose isUnderWater to Entity (#8454)
Diffstat (limited to 'patches/server/0841-Guard-against-invalid-entity-positions.patch')
-rw-r--r--patches/server/0841-Guard-against-invalid-entity-positions.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0841-Guard-against-invalid-entity-positions.patch b/patches/server/0841-Guard-against-invalid-entity-positions.patch
index a6d19a8e5f..c46dce184c 100644
--- a/patches/server/0841-Guard-against-invalid-entity-positions.patch
+++ b/patches/server/0841-Guard-against-invalid-entity-positions.patch
@@ -6,10 +6,10 @@ Subject: [PATCH] Guard against invalid entity positions
Anything not finite should be blocked and logged
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
-index 869c38119d030c849cff2b66b3fd26f143933782..445eebd06c2eb681c334bdf07c9fd6517705b128 100644
+index 13a601ba8c26bac8ec943b848b9130081fd78a3f..d92f594684c32a15c378f41a9e587c67784be005 100644
--- a/src/main/java/net/minecraft/world/entity/Entity.java
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
-@@ -4198,11 +4198,33 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
+@@ -4197,11 +4197,33 @@ public abstract class Entity implements Nameable, EntityAccess, CommandSource {
return this.getZ((2.0D * this.random.nextDouble() - 1.0D) * widthScale);
}