Fixed crashes

This commit is contained in:
modmuss50 2016-03-20 12:10:23 +00:00
parent edc8531b2d
commit 5460f2f9a2
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ public class BlockOre extends BaseBlock implements ITexturedBlock, IOreNameProvi
public static ItemStack getOreByName(String name, int count) {
for (int i = 0; i < types.length; i++) {
if (types[i].equals(name)) {
if (types[i].equalsIgnoreCase(name)) {
return new ItemStack(ModBlocks.ore, count, i);
}
}

View file

@ -27,7 +27,7 @@ public class BlockOre2 extends BaseBlock implements ITexturedBlock, IOreNameProv
public static ItemStack getOreByName(String name, int count) {
for (int i = 0; i < types.length; i++) {
if (types[i].equals(name)) {
if (types[i].equalsIgnoreCase(name)) {
return new ItemStack(ModBlocks.ore2, count, i);
}
}
@ -41,7 +41,7 @@ public class BlockOre2 extends BaseBlock implements ITexturedBlock, IOreNameProv
public IBlockState getBlockStateFromName(String name){
int index = -1;
for (int i = 0; i < types.length; i++) {
if (types[i].equals(name)) {
if (types[i].equalsIgnoreCase(name)) {
index = i;
break;
}