From c6309e254e7a1678fd230b3356f446577f179cbe Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 30 Jun 2023 10:27:57 +0200 Subject: [PATCH] Fix mossy permafrost stair buggy texture --- src/workbench.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/workbench.lua b/src/workbench.lua index 19e3ac9..ea2fc66 100644 --- a/src/workbench.lua +++ b/src/workbench.lua @@ -295,6 +295,14 @@ for i = 1, #nodes do tiles = {def.tile_images[1]} end + -- Erase `tileable_vertical=false` from tiles because it + -- lead to buggy textures (e.g. with default:permafrost_with_moss) + for t=1, #tiles do + if type(tiles[t]) == "table" and tiles[t].tileable_vertical == false then + tiles[t].tileable_vertical = nil + end + end + if not minetest.registered_nodes["stairs:slab_" .. item_name] then stairs.register_stair_and_slab(item_name, node, groups, tiles, S("@1 Stair", def.description),