mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 06:24:06 +01:00
15 lines
656 B
Diff
15 lines
656 B
Diff
--- a/net/minecraft/server/LootItemConditionRandomChanceWithLooting.java
|
|
+++ b/net/minecraft/server/LootItemConditionRandomChanceWithLooting.java
|
|
@@ -28,6 +28,11 @@
|
|
if (entity instanceof EntityLiving) {
|
|
i = EnchantmentManager.g((EntityLiving) entity);
|
|
}
|
|
+ // CraftBukkit start - only use lootingModifier if set by Bukkit
|
|
+ if (loottableinfo.hasContextParameter(LootContextParameters.LOOTING_MOD)) {
|
|
+ i = loottableinfo.getContextParameter(LootContextParameters.LOOTING_MOD);
|
|
+ }
|
|
+ // CraftBukkit end
|
|
|
|
return loottableinfo.a().nextFloat() < this.a + (float) i * this.b;
|
|
}
|