Dig footprinted node gives the original node instead of the footprinted version.

This commit is contained in:
Karamel 2017-08-30 09:56:24 +02:00
parent b5712af742
commit 1e77e9a59a

@ -158,6 +158,10 @@ function poschangelib.register_footprints(node_name, stomp_desc)
stomped_node_desc.on_construct = function(pos) minetest.get_node_timer(pos):start(math.random(stomp_desc.duration_min, stomp_desc.duration_max)) end
end
end
-- Drop the original node when dug
if not desc.drop then
stomped_node_desc.drop = node_name
end
-- Register
minetest.register_node(stomped_node_name, stomped_node_desc)
poschangelib.register_stomp(node_name, stomped_node_name, stomp_desc)