From 0d12bbfb5605ffb0ee425f53a2d16e0af480434b Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 14 Oct 2018 18:46:48 +0100 Subject: [PATCH] Fixed Warps --- modules/WarpPoints/control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/WarpPoints/control.lua b/modules/WarpPoints/control.lua index eed4a68a..843d9f63 100644 --- a/modules/WarpPoints/control.lua +++ b/modules/WarpPoints/control.lua @@ -240,7 +240,7 @@ script.on_event(defines.events.on_player_created, function(event) text='Warp: Spawn', icon={type='item',name=warp_item} }) - global.warps['Spawn'] = {tag=tag,surface=player.surface,position={0,0}} + global.warps['Spawn'] = {tag=tag,surface=player.surface.index,position={0,0}} end end)