1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Updated mesecons' wall lever model/textures

- Solves #162
This commit is contained in:
LeMagnesium
2015-09-04 18:33:50 +02:00
parent cee58561b2
commit 3a930c8118
13 changed files with 619 additions and 705 deletions

View File

@ -107,16 +107,11 @@ local function resolve_commands(commands, pos)
farthest = player:get_player_name()
end
end
local randomp = players[math.random(#players)]
if randomp then
local random = randomp:get_player_name()
commands = commands:gsub("@nearest", nearest)
commands = commands:gsub("@farthest", farthest)
commands = commands:gsub("@random", random)
return commands
else
return ""
end
local random = players[math.random(#players)]:get_player_name()
commands = commands:gsub("@nearest", nearest)
commands = commands:gsub("@farthest", farthest)
commands = commands:gsub("@random", random)
return commands
end
local function commandblock_action_on(pos, node)