mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-04-15 08:20:43 +02:00
Don't remove detail tile from glasslike nodes after registration (#206)
This commit is contained in:
parent
77c4ebb7ab
commit
20689b1f18
14
nodes.lua
14
nodes.lua
@ -499,17 +499,17 @@ for name, def in pairs(nodes) do
|
|||||||
minetest.register_node("moreblocks:" ..name, def)
|
minetest.register_node("moreblocks:" ..name, def)
|
||||||
minetest.register_alias(name, "moreblocks:" ..name)
|
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.
|
-- Use the primary tile for all sides of cut glasslike nodes.
|
||||||
-- This makes them easier to see
|
-- This makes them easier to see
|
||||||
if
|
if
|
||||||
#def_copy.tiles > 1 and
|
#tiles > 1 and
|
||||||
def_copy.drawtype and
|
def.drawtype and
|
||||||
def_copy.drawtype == "glasslike_framed" or
|
def.drawtype == "glasslike_framed" or
|
||||||
def_copy.drawtype == "glasslike_framed_optional"
|
def.drawtype == "glasslike_framed_optional"
|
||||||
then
|
then
|
||||||
def.tiles = {def_copy.tiles[1]}
|
tiles = {def.tiles[1]}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -519,7 +519,7 @@ for name, def in pairs(nodes) do
|
|||||||
stairsplus:register_all("moreblocks", name, "moreblocks:" ..name, {
|
stairsplus:register_all("moreblocks", name, "moreblocks:" ..name, {
|
||||||
description = def.description,
|
description = def.description,
|
||||||
groups = groups,
|
groups = groups,
|
||||||
tiles = def.tiles,
|
tiles = tiles,
|
||||||
sunlight_propagates = def.sunlight_propagates,
|
sunlight_propagates = def.sunlight_propagates,
|
||||||
light_source = def.light_source,
|
light_source = def.light_source,
|
||||||
sounds = def.sounds,
|
sounds = def.sounds,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user