mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 07:33:12 +09:00
Fix issue with MapPosition.energy
This commit is contained in:
10 files changed
+15
-15
No files matched your search
@@ -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