mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-02-06 01:57:31 +01:00
Use config over newScene#getScriptManager
This commit is contained in:
@@ -338,7 +338,7 @@ public class World implements Iterable<Player> {
|
|||||||
SceneConfig config = newScene.getScriptManager().getConfig();
|
SceneConfig config = newScene.getScriptManager().getConfig();
|
||||||
if (teleportProperties.getTeleportTo() == null && config != null) {
|
if (teleportProperties.getTeleportTo() == null && config != null) {
|
||||||
if (config.born_pos != null) {
|
if (config.born_pos != null) {
|
||||||
teleportProperties.setTeleportTo(newScene.getScriptManager().getConfig().born_pos);
|
teleportProperties.setTeleportTo(config.born_pos);
|
||||||
}
|
}
|
||||||
if (config.born_rot != null) {
|
if (config.born_rot != null) {
|
||||||
teleportProperties.setTeleportRot(config.born_rot);
|
teleportProperties.setTeleportRot(config.born_rot);
|
||||||
|
|||||||
Reference in New Issue
Block a user