Fix minetest.rotate_and_place() calling on_rightclick() with nil/random param for node

This commit is contained in:
PilzAdam 2014-01-19 23:16:22 +01:00
parent 1146db9956
commit 4585e855a7
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ if minetest then
end
local undef = minetest.registered_nodes[unode.name]
if undef and undef.on_rightclick then
undef.on_rightclick(pointed_thing.under, node, placer,
undef.on_rightclick(pointed_thing.under, unode, placer,
itemstack, pointed_thing)
return
end