Funwayguy / InfiniteInvo

Enlarge the vanilla Minecraft inventory infintely (or until Java runs out of memory at 2.14 billion slot!)
10 stars 10 forks source link

Custom slots not clearing color when drawn. #12

Closed kirderf1 closed 9 years ago

kirderf1 commented 9 years ago

When used for a container with for example buttons, the GL color is left as the color of the string of the previous button. Thus drawing the slots in an other color. This can be easily solved by calling GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); before drawing stuff in the InvoScrollBar class.

Funwayguy commented 9 years ago

Thanks for finding this, especially pointing out exactly where I messed up. I credited you in the changelog