Switched from deprecated functions setyaw and setpos to set_yaw and set_pos

This commit is contained in:
Pierre-Yves Rollo 2019-03-05 20:59:42 +01:00
parent b98e97157c
commit d7de025623

View File

@ -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