Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 23:00:08 +01:00
13 Zeilen
493 B
Diff
13 Zeilen
493 B
Diff
|
--- a/net/minecraft/server/LootItemConditionSurvivesExplosion.java
|
||
|
+++ b/net/minecraft/server/LootItemConditionSurvivesExplosion.java
|
||
|
@@ -25,7 +25,8 @@
|
||
|
Random random = loottableinfo.b();
|
||
|
float f = 1.0F / ofloat;
|
||
|
|
||
|
- return random.nextFloat() <= f;
|
||
|
+ // CraftBukkit - <= to < to allow for plugins to completely disable block drops from explosions
|
||
|
+ return random.nextFloat() < f;
|
||
|
} else {
|
||
|
return true;
|
||
|
}
|