mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 00:15:33 +01:00
Natural spawn test
(without luas)
This commit is contained in:
@@ -195,11 +195,11 @@ public class GenshinPlayer {
|
||||
this.world = world;
|
||||
}
|
||||
|
||||
public GenshinScene getScene() {
|
||||
public synchronized GenshinScene getScene() {
|
||||
return scene;
|
||||
}
|
||||
|
||||
public void setScene(GenshinScene scene) {
|
||||
public synchronized void setScene(GenshinScene scene) {
|
||||
this.scene = scene;
|
||||
}
|
||||
|
||||
@@ -695,6 +695,10 @@ public class GenshinPlayer {
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
//
|
||||
if (this.getScene() != null && this.getSceneLoadState() == SceneLoadState.LOADED) {
|
||||
this.getScene().checkSpawns(this);
|
||||
}
|
||||
// Ping
|
||||
if (this.getWorld() != null) {
|
||||
// RTT notify - very important to send this often
|
||||
|
||||
Reference in New Issue
Block a user