mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-03-14 07:47:25 +08:00
Remove more scene synchronized
This commit is contained in:
parent
1719c08eb0
commit
e32aea4d0b
@ -663,7 +663,7 @@ public final class Scene {
|
||||
this.npcBornEntrySet = npcBornEntries;
|
||||
}
|
||||
|
||||
public synchronized void checkSpawns() {
|
||||
public void checkSpawns() {
|
||||
Set<SpawnDataEntry.GridBlockId> loadedGridBlocks = new HashSet<>();
|
||||
for (Player player : this.getPlayers()) {
|
||||
Collections.addAll(
|
||||
@ -788,7 +788,7 @@ public final class Scene {
|
||||
return activeGroups;
|
||||
}
|
||||
|
||||
public synchronized boolean loadBlock(SceneBlock block) {
|
||||
public boolean loadBlock(SceneBlock block) {
|
||||
if (this.loadedBlocks.contains(block)) return false;
|
||||
|
||||
this.onLoadBlock(block, this.players);
|
||||
|
Loading…
x
Reference in New Issue
Block a user