fix unknown item drops

This commit is contained in:
Niklp09 2023-04-11 10:44:21 +02:00
parent 109c5c371e
commit f0c0ee3d75

View File

@ -53,8 +53,8 @@ local NodeNames = {
"techage:basalt_glass",
"techage:basalt_glass2",
"techage:bauxite_stone",
"techage:bauxite_cobble",
"techage:bauxite_stone",
"techage:cement_block",
}
@ -64,6 +64,9 @@ if(minetest.get_modpath("moreblocks")) then
local ndef = minetest.registered_nodes[name]
if ndef then
ndef = table.copy(ndef)
if ndef.drop then -- this fixes https://github.com/fluxionary/minetest-moreblocks/issues/19
ndef.drop = nil
end
local subname = string.split(name, ":")[2]
ndef.sunlight_propagates = true
ndef.groups.not_in_creative_inventory = 1