-
Notifications
You must be signed in to change notification settings - Fork 13
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
Basic Pregenerator #121
base: master
Are you sure you want to change the base?
Basic Pregenerator #121
Conversation
src/main/java/serverutils/pregenerator/filemanager/PregeneratorFileManager.java
Outdated
Show resolved
Hide resolved
|
||
public PregeneratorFileManager(MinecraftServer server, double xLoc, double zLoc, int radius, int dimensionID) | ||
throws IOException { | ||
Path temporaryFileSaveFolder = Paths.get("saves").resolve(getWorldFolderPath(server).resolve(COMMAND_FOLDER)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if the temp files are made in some subfolder of the serverutilities
folder, if they're in the world folder and backups are running then all of the temp files will be zipped up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I'll be sure to move those over. Just had it there for the moment.
src/main/java/serverutils/handlers/ServerUtilitiesWorldEventHandler.java
Outdated
Show resolved
Hide resolved
This is using impressively little ram to the point that there is definitely some wiggle room if you ever wanted it to go faster. |
Weird things start happening when I up to 2 chunks per tick. I can do something like 2 chunks every other tick. Most testing will be required before I'm happy upping the speed. I can maybe add a config for how fast? It really might just depend on your system speed. |
More work will eventually be needed to make it better, but this works to generate a circle for now.
Will want to make a GUI to select the areas specifically and add a square generation area.