Fixed canGrind crash
This commit is contained in:
parent
b9eba8778d
commit
b9deff12a7
2 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ public class TileGrinderWheel extends TileElectrical
|
|||
|
||||
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)
|
||||
|
|
|
@ -14,7 +14,7 @@ tile.resonantinduction\:tesla.name=Tesla Coil
|
|||
tile.resonantinduction\:contractor.name=Electromagnetic Levitator
|
||||
tile.resonantinduction\:battery.name=Battery
|
||||
tile.resonantinduction\:machinePart.name=Machine Part
|
||||
tile.resonantinduction\:grindingWheel.name=Grinding Wheel
|
||||
tile.resonantinduction\:grindingWheel.name=Grinder Wheel
|
||||
tile.resonantinduction\:filter.name=Filter
|
||||
|
||||
## Items
|
||||
|
|
Loading…
Reference in a new issue