Skip to content

Commit

Permalink
made generators unable to be disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Dec 15, 2023
1 parent 664c937 commit 59ab3ca
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ public class BlockEntityGenerator<T extends BlockEntityGenerator<T>> extends Blo
public BlockEntityGenerator(Machine<?> type, BlockPos pos, BlockState state) {
super(type, pos, state);
energyHandler.set(() -> new MachineEnergyHandler<T>((T) this, type.amps(), type.has(GENERATOR)) {
@Override
public boolean canInput(Direction direction) {
return false;
}

@Override
public boolean canInput() {
return false;
}

@Override
public boolean canOutput(Direction direction) {
Expand All @@ -38,5 +29,8 @@ public Tier getPowerLevel() {
return Tier.getMax();
}


@Override
public boolean toggleMachine() {
return false;
}
}

0 comments on commit 59ab3ca

Please sign in to comment.