Fixed set mode for mining drill mk2 and mk3
| | |
| | | minetest.chat_send_player(player_name, S("Mining Drill Mk%d Mode %d"):format(2, mode)..": "..mining_drill_mode_text[mode][1]) |
| | | item["name"]="technic:mining_drill_mk2_"..mode |
| | | meta["mode"]=mode |
| | | item["metadata"]=minetest.serialize(meta) |
| | | itemstack:replace(item) |
| | | itemstack:set_metadata(minetest.serialize(meta)) |
| | | return itemstack |
| | | end |
| | | |
| | |
| | | minetest.chat_send_player(player_name, S("Mining Drill Mk%d Mode %d"):format(3, mode)..": "..mining_drill_mode_text[mode][1]) |
| | | item["name"]="technic:mining_drill_mk3_"..mode |
| | | meta["mode"]=mode |
| | | item["metadata"]=minetest.serialize(meta) |
| | | itemstack:replace(item) |
| | | itemstack:set_metadata(minetest.serialize(meta)) |
| | | return itemstack |
| | | end |
| | | |