summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas <tom2357@online.de>2017-03-05 09:01:50 +0100
committerThomas <tom2357@online.de>2017-03-05 09:01:50 +0100
commit1765c31eaa758b0a522a51ae0c1748f0fbb05f23 (patch)
treebe2917a0f9bb3d4534ffd34956808d6da747b006
parent11610cd9cb7e22e52e5d68a7e1bfbe6440e3f4a3 (diff)
Fixed set mode for mining drill mk2 and mk3
-rw-r--r--origin0
-rw-r--r--technic/tools/mining_drill.lua4
2 files changed, 2 insertions, 2 deletions
diff --git a/origin b/origin
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/origin
diff --git a/technic/tools/mining_drill.lua b/technic/tools/mining_drill.lua
index fee7c4e..e8e9bcb 100644
--- a/technic/tools/mining_drill.lua
+++ b/technic/tools/mining_drill.lua
@@ -252,7 +252,7 @@ local function mining_drill_mk2_setmode(user,itemstack)
mode=mode+1
if mode>=5 then mode=1 end
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
+ itemstack:set_name("technic:mining_drill_mk2_"..mode);
meta["mode"]=mode
itemstack:set_metadata(minetest.serialize(meta))
return itemstack
@@ -275,7 +275,7 @@ local function mining_drill_mk3_setmode(user,itemstack)
mode=mode+1
if mode>=6 then mode=1 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
+ itemstack:set_name("technic:mining_drill_mk3_"..mode);
meta["mode"]=mode
itemstack:set_metadata(minetest.serialize(meta))
return itemstack