From 892646478eb5e9e8391878a89a77629fb69a1d2b Mon Sep 17 00:00:00 2001 From: strubium <113206902+strubium@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:20:23 -0600 Subject: [PATCH] pain --- .../apiimpl/providers/DefaultProbeInfoProvider.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoProvider.java b/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoProvider.java index 4e27a0b9..0b6253df 100644 --- a/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoProvider.java +++ b/src/main/java/mcjty/theoneprobe/apiimpl/providers/DefaultProbeInfoProvider.java @@ -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.*; @@ -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);