Fix NPE on rendering inside Hive

This commit is contained in:
miozune committed 2022-01-19 19:16:50 +09:00
1 parent 5845a37558
commit af1c54b738
1 file changed
+2 -1
@@ -199,7 +199,8 @@ public class BlockBeehives extends BlockContainer {
@SideOnly(Side.CLIENT)
public IIcon getIcon(int i, int j) {
if (j == 0 || j > 8) {
return null;
// placeholder for not causing NPE
return icons[3];
}
if (i == 0 || i == 1) {