mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-06 22:04:25 -04:00
placing door on unknown node crashes game
placing a door on an unknown node crashes the game.
This commit is contained in:
parent
9e54b379c8
commit
24ae43b1b1
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ function doors.register_door(name, def)
|
||||||
|
|
||||||
local ptu = pointed_thing.under
|
local ptu = pointed_thing.under
|
||||||
local nu = minetest.get_node(ptu)
|
local nu = minetest.get_node(ptu)
|
||||||
if minetest.registered_nodes[nu.name].on_rightclick then
|
if minetest.registered_nodes[nu.name]
|
||||||
|
and minetest.registered_nodes[nu.name].on_rightclick then
|
||||||
return minetest.registered_nodes[nu.name].on_rightclick(ptu, nu, placer, itemstack)
|
return minetest.registered_nodes[nu.name].on_rightclick(ptu, nu, placer, itemstack)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue