SpoutDev/SpoutPlugin — pull request #46 by thedudeguy (2012-06-19 06:43:05+00:00)
Title: Custom Item Texture Caching when using textures from file instead of URL

I found that my custom item textures were getting destroyed rendering my custom items as flint. Found this to be because the setTexture of GenericCustomItem was calling addToCache(String), which was adding my textures to the cache again from a URL standpoint, where as my textures are loaded from disc using addToCache(File).

This was causing my custom item textures to get blanked out rendering them as flint. To solve this I added a method setTexture(File) which I can pass a File reference, and the method can use the appropriate addToCache this way.

Also I removed several unused imports.