--- a/net/minecraft/loot/functions/LootingEnchantBonus.java
+++ b/net/minecraft/loot/functions/LootingEnchantBonus.java
@@ -43,7 +43,7 @@
    public ItemStack func_215859_a(ItemStack p_215859_1_, LootContext p_215859_2_) {
       Entity entity = p_215859_2_.func_216031_c(LootParameters.field_216284_d);
       if (entity instanceof LivingEntity) {
-         int i = EnchantmentHelper.func_185283_h((LivingEntity)entity);
+         int i = p_215859_2_.getLootingModifier();
          if (i == 0) {
             return p_215859_1_;
          }
