Fix issue #17
parent
87fbbba3b5
commit
08cae3e293
|
@ -19,7 +19,10 @@ minetest.register_tool('lobby:shank', {
|
|||
if count > 1 then
|
||||
minetest.chat_send_player(traitor, 'Weapon Cooldown.')
|
||||
minetest.after(10, function()
|
||||
player_inv:add_item('main', 'lobby:shank')
|
||||
local map_id = lobby.game[traitor]
|
||||
if map_id ~= 'lobby' then
|
||||
player_inv:add_item('main', 'lobby:shank')
|
||||
end
|
||||
end)
|
||||
elseif count == 1 then
|
||||
lobby.traitor_win(traitor, map_name)
|
||||
|
|
Loading…
Reference in New Issue