Use config over newScene#getScriptManager

This commit is contained in:
KingRainbow44 2023-05-01 22:53:07 -04:00
parent c3f944da44
commit a579243e51
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -338,7 +338,7 @@ public class World implements Iterable<Player> {
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);