From 05375c0fd481b2278721509402bfe471d1feaed9 Mon Sep 17 00:00:00 2001 From: An0n3m0us Date: Thu, 26 Sep 2019 23:35:06 +0100 Subject: [PATCH] Fix glass panes sides (#2500) --- game_api.txt | 6 +++++- mods/xpanes/init.lua | 9 ++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/game_api.txt b/game_api.txt index a066a087..c6d07908 100644 --- a/game_api.txt +++ b/game_api.txt @@ -773,7 +773,11 @@ Creates panes that automatically connect to each other ### Pane definition { - textures = {"texture for sides", (unused), "texture for top and bottom"}, -- More tiles aren't supported + textures = { + "texture for front and back", + (unused), + "texture for the 4 edges" + }, -- More tiles aren't supported groups = {group = rating}, -- Uses the known node groups, see [Known damage and digging time defining groups] sounds = SoundSpec, -- See [#Default sounds] recipe = {{"","","","","","","","",""}}, -- Recipe field only diff --git a/mods/xpanes/init.lua b/mods/xpanes/init.lua index 8dcbb5fa..27f4c013 100644 --- a/mods/xpanes/init.lua +++ b/mods/xpanes/init.lua @@ -105,7 +105,14 @@ function xpanes.register_pane(name, def) inventory_image = def.inventory_image, wield_image = def.wield_image, paramtype2 = "facedir", - tiles = {def.textures[3], def.textures[3], def.textures[1]}, + tiles = { + def.textures[3], + def.textures[3], + def.textures[3], + def.textures[3], + def.textures[1], + def.textures[1] + }, groups = flatgroups, drop = "xpanes:" .. name .. "_flat", sounds = def.sounds, -- 2.25.1