mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 04:57:18 +00:00
Use config
over newScene#getScriptManager
This commit is contained in:
parent
c3f944da44
commit
a579243e51
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user