Check if the scene has a config

This commit is contained in:
KingRainbow44 2023-04-02 20:42:12 -04:00
parent 9fbb7fb3be
commit 8b4471ee54
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -446,6 +446,7 @@ public final class Scene {
* Teleports the player if the player is out of bounds. * Teleports the player if the player is out of bounds.
*/ */
private void checkPlayerRespawn() { private void checkPlayerRespawn() {
if (this.getScriptManager().getConfig() == null) return;
var diePos = this.getScriptManager().getConfig().die_y; var diePos = this.getScriptManager().getConfig().die_y;
// Check players in the scene. // Check players in the scene.