Merge pull request #618 from CocoTheOwner/pregenFix

Engine is null again dan!
This commit is contained in:
Dan 2021-09-10 09:12:47 -04:00 committed by GitHub
commit 697f40595e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,10 @@ public class CommandPregen implements DecreeExecutor {
Vector center
) {
try {
if (access() == null) {
sender().sendMessage(C.RED + "The engine access for this world is null!");
sender().sendMessage(C.RED + "Please make sure the world is loaded & the engine is initialized. Generate a new chunk, for example.");
}
IrisToolbelt.pregenerate(PregenTask
.builder()
.center(new Position2(center))