fix mined blocks cache

This commit is contained in:
okx-code
2025-01-22 20:06:10 +00:00
parent 006ca8779f
commit 4ffde11d2c

View File

@@ -96,7 +96,7 @@ public class VeinBreakListener implements Listener {
chunkPdc.set(oreLocationsKey, PersistentDataType.INTEGER_ARRAY, list.toIntArray());
this.minedBlocksCache.computeIfAbsent(ChunkPos.from(oreBlock.getChunk()), k -> new ArrayList<>()).add(block.getLocation());
this.minedBlocksCache.computeIfAbsent(ChunkPos.from(oreBlock.getChunk()), k -> new ArrayList<>()).add(oreBlock.getLocation());
JavaPlugin.getPlugin(HeliodorPlugin.class).getLogger()
.info("Player " + event.getPlayer().getName() + " found meteoric iron ore at " + oreBlock.getWorld().getName() + " " + oreBlock.getX() + " " + oreBlock.getY() + " " + oreBlock.getZ());
this.dao.incrementBlocksMined(vein, 2);