Pass user name string instead of userdata
This commit is contained in:
parent
0d33ff5b0b
commit
927c4b1f77
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ for _, node in pairs(nodes) do
|
|||
newnode.inventory_image = '[inventorycube{tnt_top.png{'..node_texture..'{tnt_side.png'
|
||||
newnode.on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.after(5, function()
|
||||
disintigrate(pos, 5, node_name, puncher, comp)
|
||||
disintigrate(pos, 5, node_name, puncher:get_player_name(), comp)
|
||||
minetest.remove_node(pos)
|
||||
end)
|
||||
end
|
||||
|
@ -122,7 +122,7 @@ for _, node in pairs(nodes) do
|
|||
newnode.inventory_image = '[inventorycube{'..node_texture..'{'..node_texture..'{'..node_texture..'^fun_caves_expand.png'
|
||||
newnode.on_punch = function(pos, node, puncher, pointed_thing)
|
||||
minetest.after(5, function()
|
||||
floor(pos, 100, node_name, puncher)
|
||||
floor(pos, 100, node_name, puncher:get_player_name())
|
||||
minetest.set_node(pos, {name = node_name})
|
||||
end)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue