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)
|
||||
|
||||
@@ -51,7 +51,7 @@ local function show_protected_entity(player, entity)
|
||||
if renders[player.index][key] then return end
|
||||
local selection_box = entity.selection_box --[[@as ExpUtil_AABB.Box]]
|
||||
local rb = selection_box.right_bottom
|
||||
local position = entity.position --[[@as MapPosition.struct]]
|
||||
local position = entity.position
|
||||
renders[player.index][key] = rendering.draw_sprite{
|
||||
sprite = "utility/notification",
|
||||
target = entity,
|
||||
|
||||
Reference in New Issue
Block a user