Skip to content

Commit

Permalink
Remove comment in it. Makes other mods not crash and such
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfieboy09 committed Oct 27, 2024
1 parent 46e6553 commit 54ee635
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.minecraft.world.level.block.state.BlockState;
import net.neoforged.neoforge.energy.EnergyStorage;
import net.neoforged.neoforge.items.ItemStackHandler;
import org.jetbrains.annotations.Nullable;

import java.util.Objects;

Expand Down Expand Up @@ -65,8 +64,7 @@ public boolean canReceive() {
return true;
}

public EnergyStorage getEnergyHandler(@Nullable Direction side) {
// Compatibility with Jade.
public EnergyStorage getEnergyHandler(Direction side) {
if (side == null) return this.getEnergyStorage();
Direction blockFacing = this.getBlockState().getValue(DiskAssemblerBlock.FACING);
return side == blockFacing.getOpposite() ? this.getEnergyStorage() : null;
Expand Down

0 comments on commit 54ee635

Please sign in to comment.