async place store

This commit is contained in:
nossr50 2023-12-17 15:17:10 -08:00
parent a522ab7b2f
commit 25bdcdb075
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Version 2.1.227
Optimized mcMMO onChunkUnload(ChunkUnloadEvent)
NOTES:
This update should greatly improve impact on TPS from mcMMO in the ChunkUnloadEvent, thanks to M_G_P and Epicurious for testing.
Version 2.1.226 Version 2.1.226
Added Short_Grass to experience.yml for Herbalism Added Short_Grass to experience.yml for Herbalism
Updated Hylian Treasures "Bushes" alias to use short_grass when playing on new Minecraft versions Updated Hylian Treasures "Bushes" alias to use short_grass when playing on new Minecraft versions

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.1.226</version> <version>2.1.227-SNAPSHOT</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -64,6 +64,8 @@ public class WorldListener implements Listener {
Chunk chunk = event.getChunk(); Chunk chunk = event.getChunk();
mcMMO.p.getFoliaLib().getImpl().runAsync(task -> {
mcMMO.getPlaceStore().chunkUnloaded(chunk.getX(), chunk.getZ(), event.getWorld()); mcMMO.getPlaceStore().chunkUnloaded(chunk.getX(), chunk.getZ(), event.getWorld());
});
} }
} }