Fix server crash from wood icon registration

This commit is contained in:
mezz committed 2015-08-01 13:32:01 -07:00
1 parent 09fcbad632
commit 7ed3d1e19f
1 file changed
+2 -1
@@ -60,10 +60,11 @@ public enum WoodType {
}
@SideOnly(Side.CLIENT)
private static final IIcon[][] icons = new IIcon[3][VALUES.length];
private static IIcon[][] icons;
@SideOnly(Side.CLIENT)
public static void registerIcons(IIconRegister register) {
icons = new IIcon[3][VALUES.length];
for (int i = 0; i < VALUES.length; i++) {
WoodType woodType = VALUES[i];
String woodName = woodType.toString().toLowerCase(Locale.ENGLISH);