1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

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

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