Fixed canGrind crash

This commit is contained in:
Calclavia 2014-01-05 16:02:19 +08:00
parent b9eba8778d
commit b9deff12a7
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ public class TileGrinderWheel extends TileElectrical
public boolean canGrind(ItemStack itemStack) public boolean canGrind(ItemStack itemStack)
{ {
return MachineRecipes.INSTANCE.getRecipe(RecipeType.GRINDER, itemStack).length > 0; return MachineRecipes.INSTANCE.getRecipe(RecipeType.GRINDER, itemStack) == null ? false : MachineRecipes.INSTANCE.getRecipe(RecipeType.GRINDER, itemStack).length > 0;
} }
private void doGrind(EntityItem entity) private void doGrind(EntityItem entity)

View file

@ -14,7 +14,7 @@ tile.resonantinduction\:tesla.name=Tesla Coil
tile.resonantinduction\:contractor.name=Electromagnetic Levitator tile.resonantinduction\:contractor.name=Electromagnetic Levitator
tile.resonantinduction\:battery.name=Battery tile.resonantinduction\:battery.name=Battery
tile.resonantinduction\:machinePart.name=Machine Part tile.resonantinduction\:machinePart.name=Machine Part
tile.resonantinduction\:grindingWheel.name=Grinding Wheel tile.resonantinduction\:grindingWheel.name=Grinder Wheel
tile.resonantinduction\:filter.name=Filter tile.resonantinduction\:filter.name=Filter
## Items ## Items