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