From 20689b1f18438e5f39dd8d494a7baf93189d2d2b Mon Sep 17 00:00:00 2001 From: j-r Date: Wed, 19 Mar 2025 17:29:42 +0100 Subject: [PATCH] Don't remove detail tile from glasslike nodes after registration (#206) --- nodes.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nodes.lua b/nodes.lua index e41318b..b471f09 100644 --- a/nodes.lua +++ b/nodes.lua @@ -499,17 +499,17 @@ for name, def in pairs(nodes) do minetest.register_node("moreblocks:" ..name, def) minetest.register_alias(name, "moreblocks:" ..name) - def_copy = table.copy(def) + local tiles = def.tiles -- Use the primary tile for all sides of cut glasslike nodes. -- This makes them easier to see if - #def_copy.tiles > 1 and - def_copy.drawtype and - def_copy.drawtype == "glasslike_framed" or - def_copy.drawtype == "glasslike_framed_optional" + #tiles > 1 and + def.drawtype and + def.drawtype == "glasslike_framed" or + def.drawtype == "glasslike_framed_optional" then - def.tiles = {def_copy.tiles[1]} + tiles = {def.tiles[1]} end @@ -519,7 +519,7 @@ for name, def in pairs(nodes) do stairsplus:register_all("moreblocks", name, "moreblocks:" ..name, { description = def.description, groups = groups, - tiles = def.tiles, + tiles = tiles, sunlight_propagates = def.sunlight_propagates, light_source = def.light_source, sounds = def.sounds,