mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-04 16:55:06 +00:00
Fix crash in w/ falling nodes
This commit is contained in:
parent
fff0e572aa
commit
300b0545b4
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ minetest.register_entity(":__builtin:falling_node", {
|
||||||
})
|
})
|
||||||
local def = core.registered_nodes[node.name]
|
local def = core.registered_nodes[node.name]
|
||||||
-- Set correct entity yaw
|
-- Set correct entity yaw
|
||||||
if node.param2 ~= 0 then
|
if def and node.param2 ~= 0 then
|
||||||
if (def.paramtype2 == "facedir" or def.paramtype2 == "colorfacedir") then
|
if (def.paramtype2 == "facedir" or def.paramtype2 == "colorfacedir") then
|
||||||
self.object:set_yaw(core.dir_to_yaw(core.facedir_to_dir(node.param2)))
|
self.object:set_yaw(core.dir_to_yaw(core.facedir_to_dir(node.param2)))
|
||||||
elseif (def.paramtype2 == "wallmounted" or def.paramtype2 == "colorwallmounted") then
|
elseif (def.paramtype2 == "wallmounted" or def.paramtype2 == "colorwallmounted") then
|
||||||
|
|
Loading…
Reference in a new issue