Skip to content

Commit

Permalink
Fix glass panes sides (#2500)
Browse files Browse the repository at this point in the history
  • Loading branch information
An0n3m0us authored and sfan5 committed Sep 26, 2019
1 parent 23ceb30 commit 05375c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion game_api.txt
Expand Up @@ -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
Expand Down
9 changes: 8 additions & 1 deletion mods/xpanes/init.lua
Expand Up @@ -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,
Expand Down

0 comments on commit 05375c0

Please sign in to comment.