mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
[mesecons_commandblock] fix warnings
This commit is contained in:
parent
4fd0ea8a88
commit
ddc157acbf
@ -72,7 +72,7 @@ end
|
|||||||
local function check_commands(commands, player_name)
|
local function check_commands(commands, player_name)
|
||||||
for _, command in pairs(commands:split("\n")) do
|
for _, command in pairs(commands:split("\n")) do
|
||||||
local pos = command:find(" ")
|
local pos = command:find(" ")
|
||||||
local cmd, param = command, ""
|
local cmd = command
|
||||||
if pos then
|
if pos then
|
||||||
cmd = command:sub(1, pos - 1)
|
cmd = command:sub(1, pos - 1)
|
||||||
end
|
end
|
||||||
@ -103,10 +103,10 @@ local function commandblock_action_on(pos, node)
|
|||||||
if node.name ~= "mesecons_commandblock:commandblock_off" then
|
if node.name ~= "mesecons_commandblock:commandblock_off" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local commander = meta:get_string("commander")
|
local commander = meta:get_string("commander")
|
||||||
|
|
||||||
if not command_blocks_activated then
|
if not command_blocks_activated then
|
||||||
--minetest.chat_send_player(commander, msg_not_activated)
|
--minetest.chat_send_player(commander, msg_not_activated)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user