aboutsummaryrefslogtreecommitdiff
path: root/display_api
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2018-12-11 14:57:42 +0100
committerPierre-Yves Rollo <dev@pyrollo.com>2018-12-11 14:57:42 +0100
commitc9329d378976ee0fea0bd3486befcd3a1af551c1 (patch)
tree73be8a583ad4a1f2aac3b04ae1bd839efe868bc0 /display_api
parente75d6bc5753ff1c395491d2f657a8b5b33d3d4b2 (diff)
downloaddisplay_modpack_no_craft-c9329d378976ee0fea0bd3486befcd3a1af551c1.tar.gz
display_modpack_no_craft-c9329d378976ee0fea0bd3486befcd3a1af551c1.zip
Added display entity yaw attribute
Diffstat (limited to 'display_api')
-rw-r--r--display_api/display.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/display_api/display.lua b/display_api/display.lua
index a8cee66..3cc52b7 100644
--- a/display_api/display.lua
+++ b/display_api/display.lua
@@ -106,13 +106,12 @@ local function place_entities(pos)
y = pos.y - top,
z = pos.z - values.dz * depth + values.rz * right})
- objrefs[entity_name]:setyaw(values.yaw)
+ objrefs[entity_name]:setyaw(values.yaw + (props.yaw or 0))
end
end
return objrefs
end
-
--- Entity update
function update_entity(entity)
if not entity then