diff options
author | Jake Potrebic <[email protected]> | 2024-09-27 09:28:04 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-09-27 18:28:04 +0200 |
commit | 9c76642f9966380c6b16d96efbc2cebc5741fe95 (patch) | |
tree | bab07ff02934f78325e1b6ba009f2c25215d2607 /patches/api/0339-Add-getComputedBiome-API.patch | |
parent | 01c4820450d4a1af15dbb0ced1f67fb40154faaa (diff) | |
download | Paper-9c76642f9966380c6b16d96efbc2cebc5741fe95.tar.gz Paper-9c76642f9966380c6b16d96efbc2cebc5741fe95.zip |
Deprecate for removal Block#isValidTool (#11439)
The method's implementation uses Block#getDrops
which re-computes the drops from the loot table each
call leading to isValidTool returning different values
with subsequent calls.
Diffstat (limited to 'patches/api/0339-Add-getComputedBiome-API.patch')
-rw-r--r-- | patches/api/0339-Add-getComputedBiome-API.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0339-Add-getComputedBiome-API.patch b/patches/api/0339-Add-getComputedBiome-API.patch index fecc34acdf..a51469e977 100644 --- a/patches/api/0339-Add-getComputedBiome-API.patch +++ b/patches/api/0339-Add-getComputedBiome-API.patch @@ -51,10 +51,10 @@ index b68367f123f029c3ff47eab6bfabd7a894a99da4..44ee56a5956cc17194c767a0c1071a2a * Sets the {@link Biome} at the given {@link Location}. * diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java -index 02361d58ac723d02d93db80a721b27d37f7dc3c1..87327df6a37668eaf87394b6b049e6d4badec6df 100644 +index cfa49e21feec7226e83e97e1053388f854b70337..f7d999d702151b50fd6ed956b59645ae2820fd27 100644 --- a/src/main/java/org/bukkit/block/Block.java +++ b/src/main/java/org/bukkit/block/Block.java -@@ -371,10 +371,22 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr +@@ -375,10 +375,22 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr * Returns the biome that this block resides in * * @return Biome type containing this block |