Fix glass panes sides (#2500)
authorAn0n3m0us <an0n3m0us@hotmail.com>
Thu, 26 Sep 2019 22:35:06 +0000 (23:35 +0100)
committersfan5 <sfan5@live.de>
Thu, 26 Sep 2019 22:35:06 +0000 (00:35 +0200)
game_api.txt
mods/xpanes/init.lua

index a066a087c1677a3e91e02afda870ece50b434603..c6d07908f42774c175657d8679e985692f80dea1 100644 (file)
@@ -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
index 8dcbb5fa100ec877fb3709f57da2a29ca8cd3c1b..27f4c013197fa6585a18a8609806be3b98c68d28 100644 (file)
@@ -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,