From 8b4471ee54740978124ba45f0b7e2fee191cce5c Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sun, 2 Apr 2023 20:42:12 -0400 Subject: [PATCH] Check if the scene has a config --- src/main/java/emu/grasscutter/game/world/Scene.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index af22fb43c..0cd5dccb2 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -446,6 +446,7 @@ public final class Scene { * Teleports the player if the player is out of bounds. */ private void checkPlayerRespawn() { + if (this.getScriptManager().getConfig() == null) return; var diePos = this.getScriptManager().getConfig().die_y; // Check players in the scene.