Fix assembly tool bug with non-empty chests

This commit is contained in:
Joachim Stolberg 2023-12-25 21:55:45 +01:00
parent 7bb16c6a73
commit 63310ed33d
2 changed files with 5 additions and 0 deletions

View File

@ -2,3 +2,4 @@ name = techage
depends = default,doors,flowers,tubelib2,networks,basic_materials,bucket,stairs,screwdriver,minecart,lcdlib,safer_lua,doclib depends = default,doors,flowers,tubelib2,networks,basic_materials,bucket,stairs,screwdriver,minecart,lcdlib,safer_lua,doclib
optional_depends = unified_inventory,wielded_light,unifieddyes,moreores,ethereal,mesecons,mesecons_materials,mesecons_mvps,digtron,bakedclay,moreblocks,i3,creative,craftguide,farming optional_depends = unified_inventory,wielded_light,unifieddyes,moreores,ethereal,mesecons,mesecons_materials,mesecons_mvps,digtron,bakedclay,moreblocks,i3,creative,craftguide,farming
description = Techage, go through 5 tech ages in search of wealth and power! description = Techage, go through 5 tech ages in search of wealth and power!
supported_games = minetest_game

View File

@ -73,6 +73,10 @@ local function remove_node(pos, digger)
return return
end end
if ndef.can_dig and not ndef.can_dig(pos, digger) then
return
end
if number ~= "" and ndef and ndef.after_dig_node then if number ~= "" and ndef and ndef.after_dig_node then
minetest.remove_node(pos) minetest.remove_node(pos)
ndef.after_dig_node(pos, node, oldmetadata, digger) ndef.after_dig_node(pos, node, oldmetadata, digger)