From 7e92382315616bad6963eb118ce2de1ff758e5d2 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Wed, 13 Nov 2024 21:18:12 +0100 Subject: [PATCH] Mtn: fix minimap bug --- maps/mountain_fortress_v3/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps/mountain_fortress_v3/functions.lua b/maps/mountain_fortress_v3/functions.lua index dd670fc3..fde11333 100644 --- a/maps/mountain_fortress_v3/functions.lua +++ b/maps/mountain_fortress_v3/functions.lua @@ -2515,7 +2515,7 @@ function Public.on_player_changed_position(event) if not loco_surface or not loco_surface.valid then return end - if player.character ~= nil and player.character.surface.index == loco_surface.index then + if player.character ~= nil and player.character.surface.index == loco_surface.index and player.surface.index == loco_surface.index then local map_gen = loco_surface.map_gen_settings if player.position.y > map_gen.height then player.set_controller { type = 1, character = player.character } end if player.position.y < (-map_gen.height / 2) then player.set_controller { type = 1, character = player.character } end