diff options
author | SoSeDiK <[email protected]> | 2022-10-11 15:43:10 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-11 14:43:10 +0200 |
commit | b097a241c0eed9235be1dae195cb7929fb701527 (patch) | |
tree | 48482501a251e9f2fbf36d8c359155fa2a542801 /patches/server/0841-Guard-against-invalid-entity-positions.patch | |
parent | 57555b8c6afc87542b26559e40381b4f0ba508bd (diff) | |
download | Paper-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.patch | 4 |
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); } |