From 11f9f098e1f6cef259db868b812ea541a00f598f Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 26 May 2018 11:40:43 +0100 Subject: [PATCH] Fixed Aagain forgot the game.player --- Addons/Guis/warp-system.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Addons/Guis/warp-system.lua b/Addons/Guis/warp-system.lua index ec3571ce..b6f5c93f 100644 --- a/Addons/Guis/warp-system.lua +++ b/Addons/Guis/warp-system.lua @@ -96,7 +96,7 @@ commands.add_command('make-warp', 'Make a warp point at your location', {'name', if not game.player then return end local position = game.player.position local name = args.name - if player.gui.top[name] then player_return({'warp-system.name-used'},defines.text_color.med) return commands.error end + if game.player.gui.top[name] then player_return({'warp-system.name-used'},defines.text_color.med) return commands.error end if _warps().warps[name] then player_return({'warp-system.name-used'},defines.text_color.med) return commands.error end if position.x^2 + position.y^2 < 100 then player_return({'warp-system.too-close'},defines.text_color.med) return commands.error end -- to do add a test for all warps