Merge pull request #663 from CocoTheOwner/onlyWarnWhenPlayer

Only warn about null engine access when the sender is a player.
This commit is contained in:
Dan 2021-11-11 17:56:48 -05:00 committed by GitHub
commit b8b643ebdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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