PaperMC/nms-patches/LootItemConditionSurvivesExplosion.patch
2020-06-25 10:00:00 +10:00

12 lines
493 B
Diff

--- a/net/minecraft/server/LootItemConditionSurvivesExplosion.java
+++ b/net/minecraft/server/LootItemConditionSurvivesExplosion.java
@@ -30,7 +30,8 @@
Random random = loottableinfo.a();
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;
}