3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00
Paper/nms-patches/LootItemConditionSurvivesExplosion.patch

13 Zeilen
493 B
Diff

2019-04-23 04:00:00 +02:00
--- a/net/minecraft/server/LootItemConditionSurvivesExplosion.java
+++ b/net/minecraft/server/LootItemConditionSurvivesExplosion.java
2020-06-25 02:00:00 +02:00
@@ -30,7 +30,8 @@
2019-12-10 23:00:00 +01:00
Random random = loottableinfo.a();
2019-04-23 04:00:00 +02:00
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;
}