Only warn about null engine access when the sender is a player.

This commit is contained in:
CocoTheOwner 2021-09-27 15:23:38 +02:00
parent 4f63db3f70
commit d81ba4a8c8

View File

@ -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.");
}