parent
720f6003ba
commit
e9a9bd711e
@ -36,7 +36,7 @@ function pipeworks.override_chest(chestname, override, connect_sides)
|
|||||||
pipeworks.after_place(pos)
|
pipeworks.after_place(pos)
|
||||||
end
|
end
|
||||||
|
|
||||||
local old_after_dig = override.after_dig or old_def.after_dig or function() end
|
local old_after_dig = override.after_dig or old_def.after_dig_node or function() end
|
||||||
override.after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
override.after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
||||||
old_after_dig(pos, oldnode, oldmetadata, digger)
|
old_after_dig(pos, oldnode, oldmetadata, digger)
|
||||||
pipeworks.after_dig(pos, oldnode, oldmetadata, digger)
|
pipeworks.after_dig(pos, oldnode, oldmetadata, digger)
|
||||||
@ -87,4 +87,4 @@ function pipeworks.override_chest(chestname, override, connect_sides)
|
|||||||
|
|
||||||
minetest.override_item(chestname, override)
|
minetest.override_item(chestname, override)
|
||||||
pipeworks.chests[chestname] = true
|
pipeworks.chests[chestname] = true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user