Fix Industrial Grinder getting stuck at 100%, closes #1004
This commit is contained in:
parent
5ed6760db9
commit
5231e1d93b
3 changed files with 4 additions and 10 deletions
|
@ -25,11 +25,9 @@
|
|||
package techreborn.api.recipe.machines;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import techreborn.api.Reference;
|
||||
import techreborn.api.recipe.BaseRecipe;
|
||||
import techreborn.tiles.multiblock.TileIndustrialGrinder;
|
||||
|
||||
public class IndustrialGrinderRecipe extends BaseRecipe {
|
||||
|
||||
|
@ -67,12 +65,4 @@ public class IndustrialGrinderRecipe extends BaseRecipe {
|
|||
public boolean useOreDic() {
|
||||
return useOreDic;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canCraft(TileEntity tile) {
|
||||
if(tile instanceof TileIndustrialGrinder){
|
||||
return ((TileIndustrialGrinder) tile).getMutliBlock();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -231,6 +231,9 @@ public class TileIndustrialGrinder extends TilePowerAcceptor implements IWrencha
|
|||
|
||||
@Override
|
||||
public boolean canCraft(final TileEntity tile, final IndustrialGrinderRecipe recipe) {
|
||||
if(!getMutliBlock()){
|
||||
return false;
|
||||
}
|
||||
final FluidStack recipeFluid = recipe.fluidStack;
|
||||
final FluidStack tankFluid = this.tank.getFluid();
|
||||
if (recipe.fluidStack == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue