From 391aefd370666afd3e9123e469b994af2739bcd1 Mon Sep 17 00:00:00 2001 From: Gerkiz <39602942+Gerkiz@users.noreply.github.com> Date: Sun, 1 Dec 2019 01:05:44 +0100 Subject: [PATCH] minor change --- maps/territorial_control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps/territorial_control.lua b/maps/territorial_control.lua index ab60e4c0..1b77765b 100644 --- a/maps/territorial_control.lua +++ b/maps/territorial_control.lua @@ -445,7 +445,7 @@ end local function on_player_changed_position(event) local player = game.players[event.player_index] - if player.surface.index == 4 then + if player.surface.name == "territorial_control" then uncover_map_for_player(player) end end