Skip to content

Commit

Permalink
Mtn: fix minimap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 13, 2024
1 parent 0a6b8f2 commit 7e92382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps/mountain_fortress_v3/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e92382

Please sign in to comment.