Skip to content

Commit

Permalink
pain
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium authored Feb 17, 2024
1 parent fe6da39 commit 8926464
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import mcjty.theoneprobe.apiimpl.ProbeConfig;
import mcjty.theoneprobe.apiimpl.elements.ElementProgress;
import mcjty.theoneprobe.compat.RedstoneFluxTools;
import mcjty.theoneprobe.compat.TeslaTools;
import mcjty.theoneprobe.config.ConfigSetup;
import mcjty.theoneprobe.setup.ModSetup;
import net.minecraft.block.*;
Expand Down Expand Up @@ -211,11 +210,7 @@ private void addFluidInfo(IProbeInfo probeInfo, ProbeConfig config, FluidStack f
private void showRF(IProbeInfo probeInfo, World world, BlockPos pos) {
ProbeConfig config = ConfigSetup.getDefaultConfig();
TileEntity te = world.getTileEntity(pos);
if (ModSetup.tesla && TeslaTools.isEnergyHandler(te)) {
long energy = TeslaTools.getEnergy(te);
long maxEnergy = TeslaTools.getMaxEnergy(te);
addRFInfo(probeInfo, config, energy, maxEnergy);
} else if (te instanceof IBigPower) {
if (te instanceof IBigPower) {
long energy = ((IBigPower) te).getStoredPower();
long maxEnergy = ((IBigPower) te).getCapacity();
addRFInfo(probeInfo, config, energy, maxEnergy);
Expand Down

0 comments on commit 8926464

Please sign in to comment.