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:
@@ -67,7 +67,7 @@ SelectArea:on_selection(function(event)
|
||||
for _, entity in ipairs(entities) do
|
||||
local skip = false
|
||||
|
||||
local entity_position = entity.position --[[@as MapPosition.struct]]
|
||||
local entity_position = entity.position
|
||||
for _, pos in ipairs(hits) do
|
||||
local x = abs(entity_position.x - pos.x)
|
||||
local y = abs(entity_position.y - pos.y)
|
||||
|
||||
Reference in New Issue
Block a user