Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Chunk> chunks = new ArrayList<Chunk>();
- for (int x = 0; x<10; x++) {
- for (int z = 0; z<10; z++{
- chunks.add(world.getChunkAt(x, z);
- }
- }
- for (Chunk c : chunks) {
- c.load(true);
- }
- @EventHandler
- public void onChunkLoad(ChunkLoadEvent event) {
- Chunk chunk = event.getChunk();
- if (chunks.contains(chunk) {
- chunks.remove(chunk);
- }
- }
Add Comment
Please, Sign In to add comment