mojira.dev
MC-9176

Glass panes not correctly rendering with the back of stairs

When glass panes are placed they do not bind with the full block back of stairs like they should.

Linked issues

Attachments

Comments 25

Glass panes, fences and iron bars do not connect to stairs.

... because stairs are transparent.

The above is the explanation (=excuse) why they are not connected with the current code, but does not mean they are not intended to connect. See, for example, MC-8345. The issue can be fixed to work as players would expect.

(Seems I had already bookmarked this issue so I'd try fixing it, but haven't had yet time to get into it.)

Edit: I took a look at it, and using the changes from MC-8345, this can be fixed somewhat easily. Unfortunately, easy doesn't equal to little work; certain change must be propagated through a bunch of classes, which means too much work for this night. Alternately, certain methods can be changed a tiny bit, but that would in turn require a lot of testing (to not break something else), or, a bunch of code could be copied and adapted to this specific case, but that is just bad coding style.

Hmm.. looks like lots of the code to be copied in that last choice has already duplication in it, so it might actually give a decent result after some combining and cleanup. Have to have a better look at this... perhaps tomorrow.

I'm very much with MArkku here. And would those who use the excuse that stairs are transparent kindly explain why glass panes /do/ join to leaves, glass blocks and glowstone, all of which are classed as transparent blocks?

The reason why glass panes connect to the above blocks is that they are hard-coded to do so, the glass panes has been intentionally programmed to not connect to transparent blocks, and have a few exceptions (eg. if(par1IBlockAccess.isBlockSolid(par2 - 1, par3, par4) || par1IBlockAccess.getBlockId(par2 - 1, par3, par4) == Block.glass.blockId){ } this is just a simple example).

15 more comments

Still happening in 15w47a.

Still happening in 1.9-pre2.

Confirmed in 1.10.

still in 16w44a

still in 1.11 Pre-Release 1

Adam Towers

migrated

Confirmed

Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w05b, Snapshot 13w09a, Snapshot 13w09b, ..., Minecraft 16w43a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11.2, Minecraft 17w06a

Minecraft 17w15a

Retrieved