From e0a385f6591d9b802026ef073c0403cc147a4fc6 Mon Sep 17 00:00:00 2001 From: Wyatt Duberstein Date: Sat, 1 Jun 2024 18:17:51 -0500 Subject: [PATCH] fixed some more enchantment apis --- pom.xml | 2 +- src/main/java/wyattduber/cashapp/customitems/ItemListener.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2f7a7f5..006d0a5 100644 --- a/pom.xml +++ b/pom.xml @@ -112,7 +112,7 @@ cmi.jar CMI-API provided - 9.7.0.10 + 9.7.2.12 diff --git a/src/main/java/wyattduber/cashapp/customitems/ItemListener.java b/src/main/java/wyattduber/cashapp/customitems/ItemListener.java index 8861377..1f3e849 100644 --- a/src/main/java/wyattduber/cashapp/customitems/ItemListener.java +++ b/src/main/java/wyattduber/cashapp/customitems/ItemListener.java @@ -108,7 +108,7 @@ public void onSnifferDeath(EntityDeathEvent event) { EntityDamageEvent.DamageCause lastDamageCause = Objects.requireNonNull(event.getEntity().getLastDamageCause()).getCause(); boolean wasKilledByArrow = lastDamageCause.equals(EntityDamageEvent.DamageCause.PROJECTILE); boolean wasKilledByFire = lastDamageCause.equals(EntityDamageEvent.DamageCause.FIRE) || lastDamageCause.equals(EntityDamageEvent.DamageCause.FIRE_TICK); - if (killItem.containsEnchantment(Enchantment.FIRE_ASPECT) || (wasKilledByArrow && killItem.containsEnchantment(Enchantment.ARROW_FIRE)) || wasKilledByFire) { + if (killItem.containsEnchantment(Enchantment.FIRE_ASPECT) || (wasKilledByArrow && killItem.containsEnchantment(Enchantment.FLAME)) || wasKilledByFire) { beefDrop = new ItemStack(Material.COOKED_BEEF); } else { beefDrop = new ItemStack(Material.BEEF);