From e21713e39ae798fd54b91e5773daee270eb0d5a1 Mon Sep 17 00:00:00 2001 From: Caffeine <61048648+Caffeinew@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:41:38 +0100 Subject: [PATCH] Update ClientEvents.java --- .../de/ellpeck/actuallyadditions/mod/event/ClientEvents.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java index b3b60350d..5bc45b7bc 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java @@ -60,8 +60,6 @@ public class ClientEvents { private static EnergyDisplay energyDisplay; - boolean shouldHideEnergyOverlay = CommonConfig.Other.HIDE_ENERGY_OVERLAY.get(); - // TODO: [port] the fuck? @SubscribeEvent public void onClientTick(ClientTickEvent.Post event) { @@ -266,7 +264,7 @@ public class ClientEvents { } } - if (tileHit instanceof IEnergyDisplay display && !shouldHideEnergyOverlay) { + if (tileHit instanceof IEnergyDisplay display && !CommonConfig.Other.HIDE_ENERGY_OVERLAY.get()) { if (!display.needsHoldShift() || player.isShiftKeyDown()) { if (energyDisplay == null) { energyDisplay = new EnergyDisplay(0, 0, null);