Skip to content

Commit

Permalink
Fix data bank not requiring energy (#2796)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitgxrl authored Jan 30, 2025
1 parent ffc268f commit f1c1fad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import com.gregtechceu.gtceu.api.capability.IDataAccessHatch;
import com.gregtechceu.gtceu.api.capability.IOpticalDataAccessHatch;
import com.gregtechceu.gtceu.api.capability.IWorkable;
import com.gregtechceu.gtceu.api.capability.forge.GTCapability;
import com.gregtechceu.gtceu.api.machine.IMachineBlockEntity;
import com.gregtechceu.gtceu.api.machine.feature.multiblock.IMultiController;
import com.gregtechceu.gtceu.api.machine.feature.multiblock.IWorkableMultiController;
import com.gregtechceu.gtceu.api.machine.multiblock.PartAbility;
import com.gregtechceu.gtceu.api.machine.multiblock.part.MultiblockPartMachine;
import com.gregtechceu.gtceu.api.recipe.GTRecipe;
Expand Down Expand Up @@ -48,7 +48,8 @@ public boolean isRecipeAvailable(@NotNull GTRecipe recipe, @NotNull Collection<I

if (isTransmitter()) {
IMultiController controller = getControllers().first();
if (!(controller instanceof IWorkable workable) || !workable.isActive()) return false;
if (!(controller instanceof IWorkableMultiController workable) || !workable.getRecipeLogic().isWorking())
return false;

List<IDataAccessHatch> dataAccesses = new ArrayList<>();
List<IDataAccessHatch> transmitters = new ArrayList<>();
Expand Down

0 comments on commit f1c1fad

Please sign in to comment.