From 9041006c5a37af0fa1fb2dc2ba18ce3616ca46b1 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sat, 26 May 2018 11:39:57 +0100 Subject: [PATCH] Fixed /make-warp name --- Addons/Guis/warp-system.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Addons/Guis/warp-system.lua b/Addons/Guis/warp-system.lua index b05a416f..ec3571ce 100644 --- a/Addons/Guis/warp-system.lua +++ b/Addons/Guis/warp-system.lua @@ -96,6 +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 _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