Skip to content

Commit

Permalink
fixed some more enchantment apis
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattduber committed Jun 1, 2024
1 parent 08ad940 commit e0a385f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<groupId>cmi.jar</groupId>
<artifactId>CMI-API</artifactId>
<scope>provided</scope>
<version>9.7.0.10</version>
<version>9.7.2.12</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e0a385f

Please sign in to comment.