From 868468bf08ac7b21a9735704a928e99e84a8b5a3 Mon Sep 17 00:00:00 2001 From: NOTPIES Date: Mon, 16 Mar 2026 18:22:56 -0300 Subject: [PATCH] fix: add proper safe checks for ded server not having colour table --- Minecraft.Client/Common/Colours/ColourTable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Minecraft.Client/Common/Colours/ColourTable.cpp b/Minecraft.Client/Common/Colours/ColourTable.cpp index 1901bf9..bb5fc2b 100644 --- a/Minecraft.Client/Common/Colours/ColourTable.cpp +++ b/Minecraft.Client/Common/Colours/ColourTable.cpp @@ -362,5 +362,8 @@ void ColourTable::setColour(const wstring &colourName, const wstring &value) unsigned int ColourTable::getColour(eMinecraftColour id) { + if (m_colourValues == NULL) + return 0xFFFFFF; + return m_colourValues[(int)id]; }