fix typo in pipeworks.override_chest

fixes #129
This commit is contained in:
OgelGames 2024-07-07 11:09:37 +10:00 committed by GitHub
parent 720f6003ba
commit e9a9bd711e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -36,7 +36,7 @@ function pipeworks.override_chest(chestname, override, connect_sides)
pipeworks.after_place(pos)
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)
old_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)
pipeworks.chests[chestname] = true
end
end