forked from Wuzzy/realtest_mt5
Fix anvil asking for stone chisel
This commit is contained in:
parent
1b962df5ad
commit
1c3daf92b0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue