mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 18:58:23 +00:00
Check if the scene has a config
This commit is contained in:
parent
9fbb7fb3be
commit
8b4471ee54
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user