Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing slime chunk for NMS chunk? #144

Open
plytki opened this issue Aug 7, 2022 · 1 comment
Open

Missing slime chunk for NMS chunk? #144

plytki opened this issue Aug 7, 2022 · 1 comment

Comments

@plytki
Copy link

plytki commented Aug 7, 2022

Describe the issue
I get spammed with a lot of errors in the console. I don't know really what it cause and what it is caused by.
Spigot version
1.18.2
Plugin version
2.8.0-SNAPSHOT
How to reproduce
I have a map which was imported into mysql datasource and I'm creating that world with my own function.
It's appearing after I leave the world. About 15-20 seconds after.

public void createIsland(String worldName, Consumer<World> worldConsumer) throws RuntimeException {
        try {
            if (mysqlLoader.worldExists(worldName)) {
                var world = Bukkit.getWorld(worldName);
                if (world != null) {
                    worldConsumer.accept(world);
                    return;
                }
                slimePlugin.asyncLoadWorld(mysqlLoader, worldName, true, islandProperties).thenAccept(newWorld -> {
                    System.out.println("loading the world: " + worldName);
                    Bukkit.getScheduler().runTask(plugin, () -> {
                        slimePlugin.generateWorld(newWorld.get());
                        World playerWorld = Bukkit.getWorld(worldName);
                        worldConsumer.accept(playerWorld);
                    });
                });
            } else {
                mysqlLoader.unlockWorld("miner_world");
                slimePlugin.asyncLoadWorld(mysqlLoader, "miner_world", true, islandProperties).thenAccept(slimeWorld -> {
                    Bukkit.getScheduler().runTask(plugin, () -> {
                        try {
                            SlimeWorld world = slimeWorld.get().clone(worldName, mysqlLoader);
                            slimePlugin.generateWorld(world);
                            World playerWorld = Bukkit.getWorld(worldName);
                            worldConsumer.accept(playerWorld);
                        } catch (WorldAlreadyExistsException | IOException e) {
                            throw new RuntimeException(e);
                        }
                    });
                });
            }
        } catch (IOException | UnknownWorldException e) {
            throw new RuntimeException(e);
        }
    }

Crash reports (if available)
https://paste.md-5.net/fasumufoqo.md

@ComputerNerd100
Copy link
Collaborator

Hey - are you able to try the latest version (2.10.0-SNAPSHOT) which is available to download from our Discord
Discord Invite: https://discord.gg/YevvsMa
Build download: https://discord.com/channels/741733106930810950/741750352596172876/1002310935605678282
2.10.0 still supports 1.18.2, but there have been updates and bugfixes since 2.8.0, so it would be great if you can check if this issue still persists on the latest version :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants