Compare commits

..

2 Commits

Author SHA1 Message Date
bc55cde65c Merge branch 'master' into 'master'
Fix digging of locked inventory nodes

Closes #34 and #33

See merge request VanessaE/homedecor_modpack!21
2021-01-30 13:45:35 +00:00
e049380408 fix digging of locked inventory nodes 2021-01-31 00:02:17 +11:00
11 changed files with 3 additions and 21 deletions

View File

@ -4,6 +4,3 @@ dofile(modpath.."/alias.lua")
dofile(modpath.."/node_stairs.lua")
dofile(modpath.."/others.lua")
dofile(modpath.."/recipes.lua")
minetest.log("action", "[building_blocks] loaded.")

View File

@ -96,5 +96,3 @@ dofile(MODPATH.."/computers.lua")
dofile(MODPATH.."/printers.lua")
dofile(MODPATH.."/recipes.lua")
dofile(MODPATH.."/tetris.lua")
minetest.log("action", "[computer] loaded.")

View File

@ -309,5 +309,3 @@ minetest.register_lbm({
fire_particles_on(pos)
end
})
minetest.log("action", "[fake_fire] loaded.")

View File

@ -121,6 +121,3 @@ if minetest.get_modpath("doors") then
end
end
minetest.log("action", "[homedecor_3d_extra] loaded.")

View File

@ -69,6 +69,6 @@ dofile(modpath.."/water_particles.lua")
dofile(modpath.."/sit.lua")
dofile(modpath.."/crafts.lua")
if minetest.settings:get_bool("log_mods") then
if minetest.settings:get_bool("log_mod") then
minetest.log("action", "[HomeDecor API] Loaded!")
end

View File

@ -141,9 +141,9 @@ function homedecor.handle_inventory(name, def, original_def)
stack:get_count()
end
local can_dig = def.can_dig
local can_dig = def.can_dig or default_can_dig
def.can_dig = function(pos, player)
return default.can_interact_with_node(player, pos) and (can_dig and (can_dig(pos, player) or true))
return default.can_interact_with_node(player, pos) and (can_dig and can_dig(pos, player) == true)
end
def.on_key_use = function(pos, player)

View File

@ -1879,4 +1879,3 @@ if minetest.get_modpath("darkage") then
end
end
minetest.log("action", "[homedecor_lightning] loaded.")

View File

@ -82,5 +82,3 @@ dofile(modpath.."/longsofas.lua")
dofile(modpath.."/sofas.lua")
dofile(modpath.."/armchairs.lua")
dofile(modpath.."/misc.lua")
minetest.log("action", "[homedecor_seating] loaded.")

View File

@ -124,5 +124,3 @@ function inbox.get_inbox_insert_formspec(pos)
"listring[]"
return formspec
end
minetest.log("action", "[inbox] loaded.")

View File

@ -328,4 +328,3 @@ if minetest.get_modpath("mesecons_mvps") then
mesecon.register_mvps_stopper("itemframes:pedestal")
end
minetest.log("action", "[itemframes] loaded.")

View File

@ -185,5 +185,3 @@ minetest.register_craft({
{'group:stick', 'default:coal_lump', 'group:stick'},
}
})
minetest.log("action", "[plasmascreen] loaded.")