Paper/nms-patches/LootItemConditionSurvivesExplosion.patch

13 lines
493 B
Diff
Raw Normal View History

2019-04-23 04:00:00 +02:00
--- 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;
}