Skip to content

Commit

Permalink
Play ignition use only when decreasing durability, not on break, also…
Browse files Browse the repository at this point in the history
… add break sound to flint and steel
  • Loading branch information
Intybyte committed Oct 27, 2024
1 parent a074daa commit 107f13c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ private static void damageFlintAndSteel(ItemStack flintAndSteel, Block smelteryB
if (damageable.getDamage() >= flintAndSteel.getType().getMaxDurability()) {
// The Flint and Steel broke
flintAndSteel.setAmount(0);
SoundEffect.IGNITION_CHAMBER_USE_FLINT_AND_STEEL_SOUND.playAt(smelteryBlock);
SoundEffect.LIMITED_USE_ITEM_BREAK_SOUND.playAt(smelteryBlock);
} else {
SoundEffect.IGNITION_CHAMBER_USE_FLINT_AND_STEEL_SOUND.playAt(smelteryBlock);
flintAndSteel.setItemMeta(meta);
}
}
Expand Down

0 comments on commit 107f13c

Please sign in to comment.