diff options
author | Spottedleaf <[email protected]> | 2024-07-13 11:44:52 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-07-13 11:44:52 -0700 |
commit | 2288e13816a74d96f3acbbb3c369b9ec87c8df76 (patch) | |
tree | 0a7f5b335390610f16af3097bc18f625b38d1018 /patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch | |
parent | 5a503d7db42eee8d287b7ed32db22a369e9e3146 (diff) | |
download | Paper-2288e13816a74d96f3acbbb3c369b9ec87c8df76.tar.gz Paper-2288e13816a74d96f3acbbb3c369b9ec87c8df76.zip |
Update last chunk position in findSupportingBlock
Fixes fetching chunks needlessly multiple times.
Thanks Lulu13022002 for pointing this out
Diffstat (limited to 'patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch')
-rw-r--r-- | patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch b/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch index 48f04e61e0..96d7849725 100644 --- a/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch +++ b/patches/server/0994-Optimize-isInWorldBounds-and-getBlockState-for-inlin.patch @@ -29,10 +29,10 @@ index 02367ef1371dde94ff6c4cd40bd32e800d6ccaaf..7b0fc7135bc107103dcaed6dc0707b18 this.x = x; this.y = y; diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java -index 6559ca1b3025eae1837986d404369a9b80b988f7..8fa92ac2a96fdfb8ecca2be0edd4186d07f26cc5 100644 +index a12ef61b42779e37d439585e479c7d73a5abf226..78dc1e76a579d135dd0eee989acc9f7de2fd5996 100644 --- a/src/main/java/net/minecraft/world/level/Level.java +++ b/src/main/java/net/minecraft/world/level/Level.java -@@ -780,7 +780,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl +@@ -782,7 +782,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl // Paper end public boolean isInWorldBounds(BlockPos pos) { |