From cf329f4236057d9e2aafdc827a88b4e2168188b5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 14 Mar 2024 21:53:10 +0100 Subject: [PATCH] Fix TPSScoreboardElement --- .../src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java index d047f39b..6de8d252 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSSystem.java @@ -324,7 +324,7 @@ public class TPSSystem implements Listener { @Override public String get(Region region, Player p) { - if (TPSSystem.getInstance().currentlyStepping) { + if (TPSSystem.getInstance() != null && TPSSystem.getInstance().currentlyStepping) { long time = System.currentTimeMillis() % 1000; if (time < 250) { return "§e" + BauSystem.MESSAGE.parse("SCOREBOARD_TPS", p) + "§8: §7•••";