diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2019-03-05 20:59:42 +0100 |
---|---|---|
committer | Pierre-Yves Rollo <dev@pyrollo.com> | 2019-03-05 20:59:42 +0100 |
commit | d7de025623bf540fc5c04eb3a2bba176cc251270 (patch) | |
tree | f7da1daaa365c7fbb74141feeb811aa9528c6a9d /display.lua | |
parent | b98e97157cc60f7a5da728a7fab81ca11577ef00 (diff) | |
download | display_modpack_no_craft-d7de025623bf540fc5c04eb3a2bba176cc251270.tar.gz display_modpack_no_craft-d7de025623bf540fc5c04eb3a2bba176cc251270.zip |
Switched from deprecated functions setyaw and setpos to set_yaw and set_pos
Diffstat (limited to '')
-rw-r--r-- | display.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/display.lua b/display.lua index 3cc52b7..0aefa82 100644 --- a/display.lua +++ b/display.lua @@ -101,12 +101,12 @@ local function place_entities(pos) minetest.serialize({ nodepos = pos })) end - objrefs[entity_name]:setpos({ + objrefs[entity_name]:set_pos({ x = pos.x - values.dx * depth + values.rx * right, y = pos.y - top, z = pos.z - values.dz * depth + values.rz * right}) - objrefs[entity_name]:setyaw(values.yaw + (props.yaw or 0)) + objrefs[entity_name]:set_yaw(values.yaw + (props.yaw or 0)) end end return objrefs |