From a579243e515765a55d4dc8b69575186f71ba7a8e Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Mon, 1 May 2023 22:53:07 -0400 Subject: [PATCH] Use `config` over `newScene#getScriptManager` --- src/main/java/emu/grasscutter/game/world/World.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/world/World.java b/src/main/java/emu/grasscutter/game/world/World.java index 677b20532..b00b16495 100644 --- a/src/main/java/emu/grasscutter/game/world/World.java +++ b/src/main/java/emu/grasscutter/game/world/World.java @@ -338,7 +338,7 @@ public class World implements Iterable { SceneConfig config = newScene.getScriptManager().getConfig(); if (teleportProperties.getTeleportTo() == null && config != null) { if (config.born_pos != null) { - teleportProperties.setTeleportTo(newScene.getScriptManager().getConfig().born_pos); + teleportProperties.setTeleportTo(config.born_pos); } if (config.born_rot != null) { teleportProperties.setTeleportRot(config.born_rot);