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/0309-Add-hasCollision-methods-to-various-places.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/0309-Add-hasCollision-methods-to-various-places.patch')
-rw-r--r-- | patches/api/0309-Add-hasCollision-methods-to-various-places.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/api/0309-Add-hasCollision-methods-to-various-places.patch b/patches/api/0309-Add-hasCollision-methods-to-various-places.patch index a886e61316..133a8b3a9a 100644 --- a/patches/api/0309-Add-hasCollision-methods-to-various-places.patch +++ b/patches/api/0309-Add-hasCollision-methods-to-various-places.patch @@ -31,10 +31,10 @@ index 5c869feaecd95dbdd658e16f5739bb41540f18bd..6959f36023b12ec2dece9b91a3b8a5d0 * Do not use for any reason. * diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java -index 6ada8c036f1a112f11a9fbc3baf1f79b3f1bfc8e..02361d58ac723d02d93db80a721b27d37f7dc3c1 100644 +index 9b0a3b4a62387d07143341756b858e15e61a9c03..cfa49e21feec7226e83e97e1053388f854b70337 100644 --- a/src/main/java/org/bukkit/block/Block.java +++ b/src/main/java/org/bukkit/block/Block.java -@@ -482,6 +482,13 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr +@@ -486,6 +486,13 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr * @return true if block is solid */ boolean isSolid(); |