From 46cb9d82ddd14fdf4891b88b7226596c11ef7620 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Rollo Date: Tue, 5 Mar 2019 20:59:42 +0100 Subject: [PATCH] Switched from deprecated functions setyaw and setpos to set_yaw and set_pos --- display_api/display.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display_api/display.lua b/display_api/display.lua index 3cc52b7..0aefa82 100644 --- a/display_api/display.lua +++ b/display_api/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