CodeChicken Lib 1.8.+

CodeChicken Lib 1.8.+

141M Downloads

Strange OOB error on BlockRenderingRegistry

MrTJP opened this issue ยท 0 comments

commented

I am getting a very weird out-of-bounds exception on BlockRenderingRegistry.registerRenderer on line 59 where the switch statement starts. I have 2 custom EnumBlockRenderTypes created. The one with ordinal 4 works fine, but when I go to register the 5th one, I get an OOB exception for index value 5.

Commenting out the entire switch statement fixes this issue. Using an empty body switch statement still produces the crash.