Darkhax-Minecraft / Bookshelf

A library mod which adds additional code support beyond what is provided by Forge.
GNU Lesser General Public License v2.1
145 stars 39 forks source link

(1.12.2) Rendering fluids with null flowing sprite #95

Closed GlobbyPotato closed 6 years ago

GlobbyPotato commented 6 years ago

Bookshelf 1.12.2-2.3.523 release Hi, adding LiquidXP from OpenBlocks into my tank (which renders with the RenderUtils.renderFluid() feature) it missed to render the sides of the fluid, returning this ticking error:

[01:42:17] [main/WARN] [bookshelf]: Attempted to draw a textures quad with no texture!

Not sure about it, quickly searching through the methods it looks like fluids with a null Flowing sprite do not try to replace it with the Still one. Other fluids give no problems.

Thank you for the useful features.

Darkhax commented 6 years ago

This is a bit of an issue, since a fluid without both textures is not really valid. I have made a new method that allows you to specify the textures to use yourself though. This should help cover your use case.