Fix assembly tool bug with non-empty chests
This commit is contained in:
parent
7bb16c6a73
commit
63310ed33d
1
mod.conf
1
mod.conf
@ -2,3 +2,4 @@ name = techage
|
||||
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
|
||||
description = Techage, go through 5 tech ages in search of wealth and power!
|
||||
supported_games = minetest_game
|
||||
|
@ -73,6 +73,10 @@ local function remove_node(pos, digger)
|
||||
return
|
||||
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
|
||||
minetest.remove_node(pos)
|
||||
ndef.after_dig_node(pos, node, oldmetadata, digger)
|
||||
|
Loading…
Reference in New Issue
Block a user