From 151e88046dc6e6cf53a14226f1a2e3d6d062d62a Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Thu, 9 Sep 2021 14:54:29 +0200 Subject: [PATCH] Engine is null again dan! --- .../java/com/volmit/iris/core/commands/CommandPregen.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java index a8e9424c1..e7b011c30 100644 --- a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java +++ b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java @@ -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))