SpoutDev/Spout — Issue #1130: Custom Block Designs for Transparent Blocks Break Glass
Author: Penguinwizzard
Created: 2011-12-04 00:51:13+00:00
State: open

If you try to create a block with a custom block design, the block design is loaded by the client for the block, but in addition is loaded for all glass (or stone if opaque) blocks on the client. This persists until the client is closed and reopened; changing to a different server (even a vanilla server) will have the client see the glass/stone blocks on that server with the block design for the first server's custom block.

Example images: http://imgur.com/a/CSol5

CraftBukkit Version: newest from git
Spout Version: newest from git
Spoutcraft Version: Build 852

Code used for block creation:
This was instantiated by the main plugin with args (this, {0,0,0,0,0,0})

```java
public class PipeBlock extends GenericCustomBlock {
public PipeBlock(Plugin plugin, int[] directions) {
super(plugin, "Pipe", false,
new GenericCuboidBlockDesign(
plugin,
new Texture(
plugin,
"http://cdn.getspout.org/img/icon/spout_16x16.png",
16,16,16
),
directions, 0.3125f, 0.3125f, 0.3125f, 0.6825f, 0.6825f, 0.6825f
)
);
}
// A few other methods, mostly empty, from the example at http://wiki.getspout.org/Custom_Blocks
}
```