Fix issue with MapPosition.energy

This commit is contained in:
Cooldude2606
2026-08-08 21:58:46 +01:00
parent d495a345d6
commit 1e861c5c0b
10 changed files with 15 additions and 15 deletions
@@ -85,7 +85,7 @@ local function on_player_changed_position(event)
if player.controller_type ~= defines.controllers.character then return end
local surface = player.physical_surface
local position = player.physical_position --[[@as MapPosition.struct]]
local position = player.physical_position
local strength = get_tile_strength(surface, position)
if not strength then return end