Fix leaves not dropping

Due to some renaming, leaves no longer dropped from any of the `mcl_core` trees.

This has now been fixed.
This commit is contained in:
FossFanatic 2023-02-10 18:40:35 +00:00
parent b789845f62
commit 1fb300ef18

@ -226,8 +226,8 @@ local function register_leaves(subname, description, longdesc, tiles, color, par
local l_def = table.copy(pl_def) local l_def = table.copy(pl_def)
l_def.groups.player_leaves = nil l_def.groups.player_leaves = nil
l_def.groups.not_in_creative_inventory = 1 l_def.groups.not_in_creative_inventory = 1
l_def._mcl_shears_drop = {"mcl_core:player" .. subname} l_def._mcl_shears_drop = {"mcl_core:" .. subname .. "_player"}
l_def._mcl_silk_touch_drop = {"mcl_core:player" .. subname} l_def._mcl_silk_touch_drop = {"mcl_core:" .. subname .. "_player"}
minetest.register_node("mcl_core:" .. subname, l_def) minetest.register_node("mcl_core:" .. subname, l_def)
@ -235,8 +235,8 @@ local function register_leaves(subname, description, longdesc, tiles, color, par
o_def._doc_items_create_entry = false o_def._doc_items_create_entry = false
o_def.groups.not_in_creative_inventory = 1 o_def.groups.not_in_creative_inventory = 1
o_def.groups.orphan_leaves = 1 o_def.groups.orphan_leaves = 1
o_def._mcl_shears_drop = {"mcl_core:player" .. subname} o_def._mcl_shears_drop = {"mcl_core:" .. subname .. "_player"}
o_def._mcl_silk_touch_drop = {"mcl_core:player" .. subname} o_def._mcl_silk_touch_drop = {"mcl_core:" .. subname .. "_player"}
minetest.register_node("mcl_core:" .. subname .. "_orphan", o_def) minetest.register_node("mcl_core:" .. subname .. "_orphan", o_def)
end end