fix helve hammer blows being < 1 #2584

This commit is contained in:
Pyritie 2026-01-12 13:58:08 +00:00
parent 8026bfed69
commit 1fceb61e43

View file

@ -635,13 +635,13 @@ function generateHammeringRecipe(event, material, blows, anvil) {
ChemicalHelper.get(TagPrefix.plate, material, 1),
ChemicalHelper.get(TFGTagPrefix.ingotDouble, material, 1))
.anvilBlock(`tfc:metal/anvil/${anvil}`)
.hammerBlows(blows)
.hammerBlows(Math.max(blows, 1))
.id(`tfg:vi/hammer/${material.getName()}_plate_on_${anvil}_anvil`)
}
function generateHammeringRecipeFromItem(event, input, output, blows, anvil) {
event.recipes.vintageimprovements.hammering(output, input)
.anvilBlock(`tfc:metal/anvil/${anvil}`)
.hammerBlows(blows)
.hammerBlows(Math.max(blows, 1))
.id(`tfg:vi/hammer/${input.replace(/[#:]/g, '_')}_on_${anvil}_anvil`)
}