mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-30 10:03:43 +01:00
Switched from deprecated functions setyaw and setpos to set_yaw and set_pos
This commit is contained in:
parent
eae85369ca
commit
46cb9d82dd
@ -101,12 +101,12 @@ local function place_entities(pos)
|
|||||||
minetest.serialize({ nodepos = pos }))
|
minetest.serialize({ nodepos = pos }))
|
||||||
end
|
end
|
||||||
|
|
||||||
objrefs[entity_name]:setpos({
|
objrefs[entity_name]:set_pos({
|
||||||
x = pos.x - values.dx * depth + values.rx * right,
|
x = pos.x - values.dx * depth + values.rx * right,
|
||||||
y = pos.y - top,
|
y = pos.y - top,
|
||||||
z = pos.z - values.dz * depth + values.rz * right})
|
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
|
||||||
end
|
end
|
||||||
return objrefs
|
return objrefs
|
||||||
|
Loading…
Reference in New Issue
Block a user