Skip to content

Commit

Permalink
整改代码
Browse files Browse the repository at this point in the history
  • Loading branch information
JWJUN233233 committed Jan 20, 2024
1 parent da48bf2 commit cac0a0d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,10 @@ public void removeAllDataInWorld(World world) {
}

public void removeDataInWorld(World world, String key) {
// remove data in cache
for (SlimefunChunkData data : loadedChunk.values()) {
data.removeData(key);
}
var re = new RecordKey(DataScope.CHUNK_DATA);
re.addCondition(FieldKey.CHUNK, world.getName() + ";%");
re.addCondition(FieldKey.DATA_KEY, key);
Expand Down

0 comments on commit cac0a0d

Please sign in to comment.