diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-12-11 14:57:42 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2018-12-11 14:57:42 +0100 |
commit | c9329d378976ee0fea0bd3486befcd3a1af551c1 (patch) | |
tree | 73be8a583ad4a1f2aac3b04ae1bd839efe868bc0 | |
parent | e75d6bc5753ff1c395491d2f657a8b5b33d3d4b2 (diff) | |
download | display_modpack_no_craft-c9329d378976ee0fea0bd3486befcd3a1af551c1.tar.gz display_modpack_no_craft-c9329d378976ee0fea0bd3486befcd3a1af551c1.zip |
Added display entity yaw attribute
-rw-r--r-- | display_api/display.lua | 3 |
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 |