aboutsummaryrefslogtreecommitdiff
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
commitd073c9edb853ed81049cd392f9573d0d124376e6 (patch)
treea0b9a2bea01aa27566224392a98679b42fe5eedb
parentea583b525032a8e0fca8a4766a89cd8bdced606a (diff)
downloaddisplay_modpack_no_craft-d073c9edb853ed81049cd392f9573d0d124376e6.tar.gz
display_modpack_no_craft-d073c9edb853ed81049cd392f9573d0d124376e6.zip
Added display entity yaw attribute
-rw-r--r--display.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/display.lua b/display.lua
index a8cee66..3cc52b7 100644
--- a/display.lua
+++ b/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