Fix anvil asking for stone chisel

This commit is contained in:
Wuzzy 2020-03-31 17:53:11 +02:00
parent 1b962df5ad
commit 1c3daf92b0
1 changed files with 4 additions and 0 deletions

View File

@ -457,6 +457,10 @@ realtest.show_craft_guide_anvil = function( player, formname, fields)
if( found ) then if( found ) then
instrument_material = instruments.materials[ found ]; instrument_material = instruments.materials[ found ];
end end
-- There is no stone chisel
if plan.instrument == "chisel" and instrument_material == "stone" then
instrument_material = "copper"
end
-- the instrument may need to be made out of a diffrent material -- the instrument may need to be made out of a diffrent material
formspec = formspec.."item_image_button[1.0,2.0;1,1;instruments:"..plan.instrument.."_"..instrument_material..";material;"..instrument_material.."]"; formspec = formspec.."item_image_button[1.0,2.0;1,1;instruments:"..plan.instrument.."_"..instrument_material..";material;"..instrument_material.."]";
-- show error message for unkown tools -- show error message for unkown tools