Improve message about drill control

The message to "hold shift" makes an unwarranted assumption about the
user's keybindings.  Messages from the server should refer to a key's
game function, rather than its extragame identity.
This commit is contained in:
Zefram
2014-04-25 17:44:46 +01:00
committed by ShadowNinja
parent 18cae761af
commit 04c6f5bea3
5 changed files with 6 additions and 6 deletions

View File

@ -243,7 +243,7 @@ local function mining_drill_mk2_setmode(user,itemstack)
mode=0
end
if meta["mode"]==nil then
minetest.chat_send_player(player_name, S("Hold shift and use to change Mining Drill Mk%d modes."):format(2))
minetest.chat_send_player(player_name, S("Use while sneaking to change Mining Drill Mk%d modes."):format(2))
meta["mode"]=0
mode=0
end
@ -267,7 +267,7 @@ local function mining_drill_mk3_setmode(user,itemstack)
mode=0
end
if meta["mode"]==nil then
minetest.chat_send_player(player_name, S("Hold shift and use to change Mining Drill Mk%d modes."):format(3))
minetest.chat_send_player(player_name, S("Use while sneaking to change Mining Drill Mk%d modes."):format(3))
meta["mode"]=0
mode=0
end