mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-27 10:59:20 +00:00
fix loading chunks
This commit is contained in:
@@ -30,6 +30,8 @@ import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class QualityLoot extends Loot {
|
||||
|
||||
private final String[] qualityLoots;
|
||||
|
||||
@@ -108,6 +108,10 @@ public class CCWorld extends Function {
|
||||
if (!chunksFolder.exists()) chunksFolder.mkdirs();
|
||||
if (!ConfigManager.onlyInLoadedChunks) {
|
||||
loadAllChunkData();
|
||||
} else {
|
||||
for (Chunk chunk : Objects.requireNonNull(world.get()).getLoadedChunks()) {
|
||||
loadChunk(ChunkCoordinate.getByBukkitChunk(chunk));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user