Certain Blocks Render Oddly Underwater
WenXin20 opened this issue ยท 7 comments
Versions
- Silent's Mechanisms: v0.6.4+35
- Silent Lib: v4.4.0+44
- Forge: v28.1.44
Expected Behavior
- Blocks placed underwater should be waterloggable.
Actual Behavior
- Placing Drying Racks, Battery Boxes, Stone Machine Frames, and Alloy Machine frames underwater will render them incorrectly. Allowing them to be waterlogged could fix this.
Image
Not sure it makes sense to allowing waterlogging for the machine frames. What if they were part of a wall or floor? They shouldn't allow water to pass through. The battery box... maybe? But the drying rack definitely.
Could the machine frames be made to render similarly to glass underwater instead of it being waterlogged?
I'll see what I can do about it. Weird thing is they already use the same code as plain glass blocks. So I'm not exactly sure why they do that.
Bluepower glass had a similar issue that I reported at Qmunity/BluePower#498, if that helps any.
Yeah, that helps. Seems like inheriting from StainedGlassBlock
instead of GlassBlock
fixes the issue. Definitely something Forge should fix eventually.
So that just leaves the battery box. Still not sure what I want to do with that. Waterlogging seems odd since it's almost a full block.
I suppose it could be left as is. Even vanilla Minecraft has some blocks left over that can't be waterlogged, like the stonecutter, which seems odd to me though.