diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-13 20:41:53 +0200 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-07-13 20:41:53 +0200 |
commit | 8c7557e45d4744fe35ad058950062cf771640126 (patch) | |
tree | bb9de2617cafe919c1176334182a4d1a59bbfbc0 /display_api | |
parent | e51afb851c996ad60d59b2c1f3e608b0d9b50864 (diff) | |
download | display_modpack-8c7557e45d4744fe35ad058950062cf771640126.tar.gz display_modpack-8c7557e45d4744fe35ad058950062cf771640126.tar.bz2 display_modpack-8c7557e45d4744fe35ad058950062cf771640126.zip |
Rework all nodes displaying text according to new font_api
Diffstat (limited to 'display_api')
-rw-r--r-- | display_api/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/display_api/init.lua b/display_api/init.lua index 240ce21..2cd15a0 100644 --- a/display_api/init.lua +++ b/display_api/init.lua @@ -128,15 +128,15 @@ local function place_entities(pos) for entity_name, props in pairs(ndef.display_entities) do local depth = clip_pos_prop(props.depth) - local height = clip_pos_prop(props.height) local right = clip_pos_prop(props.right) + local top = clip_pos_prop(props.top) if not objrefs[entity_name] then objrefs[entity_name] = minetest.add_entity(pos, entity_name) end objrefs[entity_name]:setpos({ x = pos.x - values.dx * depth + values.rx * right, - y = pos.y + height, + y = pos.y - top, z = pos.z - values.dz * depth + values.rz * right}) objrefs[entity_name]:setyaw(values.yaw) @@ -268,4 +268,4 @@ minetest.register_lbm({ }) -- Compatibility -display_lib = display_api
\ No newline at end of file +display_lib = display_api |