mirror of
https://files.creativekara.fr/git/poschangelib.git
synced 2024-12-04 21:13:50 +01:00
Dig footprinted node gives the original node instead of the footprinted version.
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user