fix renegeration hearts moving when the game is paused

This commit is contained in:
Alexdoru committed 2023-09-13 23:37:20 +02:00
1 parent 53e0950560
commit 4b40aef354
1 file changed
+1 -1
@@ -34,7 +34,7 @@ public class HealthBarRenderer extends Gui {
@SubscribeEvent
public void onTick(TickEvent.ClientTickEvent event) {
if (event.phase == TickEvent.Phase.START) {
if (event.phase == TickEvent.Phase.START && !mc.isGamePaused()) {
this.updateCounter++;
}
}