formatting and code cleanup in command class

This commit is contained in:
Bella 2020-03-12 11:49:21 -04:00
parent f288b08ccb
commit 1f1c837ba8
No known key found for this signature in database
GPG Key ID: 03B01AC937D1C89C
1 changed files with 2 additions and 6 deletions

View File

@ -56,16 +56,12 @@ public abstract class Command {
if (isSendable()) {
Wrapper.getPlayer().sendMessage(new ChatMessage(message));
} else {
LogWrapper.info("KAMI Blue: Avoided NPE by logging to file instead of chat\n" + message);
LogWrapper.info(message);
}
}
public static boolean isSendable() {
if (Minecraft.getMinecraft().player == null) {
return false;
} else {
return true;
}
return Minecraft.getMinecraft().player != null;
}
protected void setDescription(String description) {