9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-25 10:09:14 +00:00

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

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