From d81ba4a8c80dc1678e85d004941a5935809cc9b0 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Mon, 27 Sep 2021 15:23:38 +0200 Subject: [PATCH] Only warn about null engine access when the sender is a player. --- src/main/java/com/volmit/iris/core/commands/CommandPregen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 03ed016d9..ee7419a7f 100644 --- a/src/main/java/com/volmit/iris/core/commands/CommandPregen.java +++ b/src/main/java/com/volmit/iris/core/commands/CommandPregen.java @@ -42,7 +42,7 @@ public class CommandPregen implements DecreeExecutor { Vector center ) { try { - if (access() == null) { + if (sender().isPlayer() && 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."); }