Pokefenn/Chisel — pull request #11 by dariusc93 (2014-06-14 02:53:02+00:00)
Title: Fixed ArrayIndexOutOfBoundsException

This PR fixes a ArrayIndexOutOfBoundsException that occurs when you place any block into the center of the chisel. This is due to the OreDictionary.getOreID() returning -1. By adding this small check in, it insures if it returns -1 or 0, to return null to prevent this crash.

Original crash log : http://pastebin.com/J0XxuZi8

I also updated to the latest version of forge (1.7.2-10.12.2.1123 is recommended but I pushed to 1.7.2-10.12.2.1124), and change how the OreDictionary.getOreID() is used in this code by using a name instead of an ItemStack (OreDictionary.getOreID(ItemStack) is deprecated and will likely be removed in the 1.7.10 update so if you do switch back, keep in mind that it will be removed)