mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-16 16:30:42 +09:00
Fix issue with MapPosition.energy
This commit is contained in:
10 files changed
+15
-15
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user