Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
made item and type filters no longer take power to auto output
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Sep 13, 2023
1 parent c0a9eeb commit 95361b7
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ public void onGuiEvent(IGuiEvent event, Player playerEntity) {
public void serverTick(Level level, BlockPos pos, BlockState state) {
super.serverTick(level, pos, state);
if (getCover(this.getFacing().getOpposite()).isEmpty()){
if (this.energyHandler.map(e -> e.getEnergy() > 0).orElse(false)){
if(processItemOutput()){
this.energyHandler.ifPresent(e -> e.extractEu(1, false));
}
}

this.processItemOutput();
}
}
@Override
Expand Down

0 comments on commit 95361b7

Please sign in to comment.