use of forestry.farming.tiles.TileFarmGearbox in project ForestryMC by ForestryMC.
the class FarmController method isMachineWhole.
@Override
protected void isMachineWhole() throws MultiblockValidationException {
super.isMachineWhole();
boolean hasGearbox = false;
for (IMultiblockComponent part : connectedParts) {
if (part instanceof TileFarmGearbox) {
hasGearbox = true;
break;
}
}
if (!hasGearbox) {
throw new MultiblockValidationException(Translator.translateToLocal("for.multiblock.farm.error.needGearbox"));
}
}
Aggregations