mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
14 lines
631 B
Diff
14 lines
631 B
Diff
--- a/net/minecraft/server/LootItemConditionRandomChanceWithLooting.java
|
|
+++ b/net/minecraft/server/LootItemConditionRandomChanceWithLooting.java
|
|
@@ -21,6 +21,11 @@
|
|
if (loottableinfo.c() instanceof EntityLiving) {
|
|
i = EnchantmentManager.g((EntityLiving) loottableinfo.c());
|
|
}
|
|
+ // CraftBukkit start - only use lootingModifier if set by Bukkit
|
|
+ if (loottableinfo.lootingMod > org.bukkit.loot.LootContext.DEFAULT_LOOT_MODIFIER) {
|
|
+ i = loottableinfo.lootingMod;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
|
|
return random.nextFloat() < this.a + (float) i * this.b;
|
|
}
|