mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-08-13 00:45:11 +09:00
Fix issue with MapPosition.energy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user