aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-17 09:51:36 -0500
committerMy-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com>2020-12-17 09:51:36 -0500
commitb453d6a47f45d677d7c55b5e8ccc5981b7b90c5b (patch)
tree87373df92fc0dfbb9a08b3ab08fa67cf5c658c80 /src/main
parent43f87af98b019166a79630ec425271d95fa7947f (diff)
downloadSkyblockMod-b453d6a47f45d677d7c55b5e8ccc5981b7b90c5b.tar.gz
SkyblockMod-b453d6a47f45d677d7c55b5e8ccc5981b7b90c5b.tar.bz2
SkyblockMod-b453d6a47f45d677d7c55b5e8ccc5981b7b90c5b.zip
Update ScoreboardHandler.java
add a null check
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/handlers/ScoreboardHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/handlers/ScoreboardHandler.java b/src/main/java/me/Danker/handlers/ScoreboardHandler.java
index b81689c..c8bc7c7 100644
--- a/src/main/java/me/Danker/handlers/ScoreboardHandler.java
+++ b/src/main/java/me/Danker/handlers/ScoreboardHandler.java
@@ -31,6 +31,7 @@ public class ScoreboardHandler {
public static List<String> getSidebarLines() {
List<String> lines = new ArrayList<>();
+ if (Minecraft.getMinecraft().theWorld == null) return lines;
Scoreboard scoreboard = Minecraft.getMinecraft().theWorld.getScoreboard();
if (scoreboard == null) return lines;