From 870bc0eb290ebd0c0bdd9c0bbd31ad40d79fb692 Mon Sep 17 00:00:00 2001 From: BendedWills Date: Fri, 6 Mar 2026 19:08:57 -0600 Subject: [PATCH] Add fatal in switch statement --- Minecraft-Community-Edition/IO/Logger.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Minecraft-Community-Edition/IO/Logger.cpp b/Minecraft-Community-Edition/IO/Logger.cpp index 5ee3d2b..0b773d2 100644 --- a/Minecraft-Community-Edition/IO/Logger.cpp +++ b/Minecraft-Community-Edition/IO/Logger.cpp @@ -59,6 +59,11 @@ namespace mce { color = Color::RED; } break; + case Severity::FATAL: { + severity = "FATAL"; + color = Color::RED; + } + break; } const std::string file = e.location.file_name(); @@ -103,7 +108,7 @@ namespace mce { void Logger::log(const LogLevel level, std::string_view message, const std::source_location& location) { //Check the event queue size and make sure to not accedintly flood it if (Logger::qBus.getQueueSize() >= Logger::MAX_LOG_EVENTS) { - return; //Ignore the log + return; //Ignore the log } else { event::LoggerOutput lOut;