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
+3 -3
View File
@@ -44,7 +44,7 @@ function FlyingText.create_above_entity(options)
local entity = assert(options.target_entity, "A target entity is required")
local bounding_box = entity.bounding_box --[[@as ExpUtil_AABB.Box]]
local size_y = bounding_box.left_top.y - bounding_box.right_bottom.y
local position = entity.position --[[@as MapPosition.struct]]
local position = entity.position
local offset = options.offset or { x = 0, y = 0 }
options.position = {
@@ -66,7 +66,7 @@ function FlyingText.create_above_player(options)
local entity = player.character; if not entity then return end
local bounding_box = entity.bounding_box --[[@as ExpUtil_AABB.Box]]
local size_y = bounding_box.left_top.y - bounding_box.right_bottom.y
local position = entity.position --[[@as MapPosition.struct]]
local position = entity.position
local offset = options.offset or { x = 0, y = 0 }
options.position = {
@@ -88,7 +88,7 @@ function FlyingText.create_as_player(options)
local entity = player.character; if not entity then return end
local bounding_box = entity.bounding_box --[[@as ExpUtil_AABB.Box]]
local size_y = bounding_box.left_top.y - bounding_box.right_bottom.y
local position = entity.position --[[@as MapPosition.struct]]
local position = entity.position
local offset = options.offset or { x = 0, y = 0 }
options.color = player.chat_color