Skip to content

Commit

Permalink
Add more weapons
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Jan 9, 2024
1 parent 5099e96 commit e7337bb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ public static boolean isWeapon(Material material) {
|| materialName.contains("AXE")
|| materialName.contains("HOE")
|| materialName.contains("SWORD")
|| materialName.contains("BOW");
|| materialName.contains("BOW")
|| materialName.contains("CROSSBOW")
|| materialName.contains("ARROW")
|| materialName.contains("TRIDENT");
}

public static boolean hasWeapon(LivingEntity mob, EntityDamageEvent.DamageCause damageCause) {
Expand Down

0 comments on commit e7337bb

Please sign in to comment.