Send global value packet after the scene host has finished initializing the scene

This commit is contained in:
KingRainbow44
2023-07-14 23:03:49 -04:00
parent f0775f70f3
commit f17339f1b6
5 changed files with 81 additions and 35 deletions

View File

@@ -1536,6 +1536,12 @@ public class Player implements PlayerHook, FieldFetch {
}
}
@Override
public boolean equals(Object obj) {
return obj instanceof Player otherPlayer &&
this.id == otherPlayer.getUid();
}
public enum SceneLoadState {
NONE(0), LOADING(1), INIT(2), LOADED(3);
@@ -1546,5 +1552,4 @@ public class Player implements PlayerHook, FieldFetch {
this.value = value;
}
}
}