From b25c8aaf38b1d7401ac2ac258849955d4f8eea86 Mon Sep 17 00:00:00 2001 From: Soggy_Pancake <54160598+Soggy-Pancake@users.noreply.github.com> Date: Sat, 14 Mar 2026 13:59:32 -0700 Subject: [PATCH] Prevent crashes from unsafe cast with dummy function and define generateStitched function in TexturePack.h --- Minecraft.Client/TexturePack.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/TexturePack.h b/Minecraft.Client/TexturePack.h index 23cb4f62..ba385691 100644 --- a/Minecraft.Client/TexturePack.h +++ b/Minecraft.Client/TexturePack.h @@ -52,7 +52,9 @@ public: virtual unsigned char getDLCSubPackId() = 0; virtual ColourTable *getColourTable() = 0; virtual ArchiveFile *getArchiveFile() = 0; - + // Needed otherwise game go boom during unsafe cast + virtual DLCPack* getDLCInfoParentPack() { return NULL; } + virtual void generateStitched(unordered_map texturesByName) {} private: bool m_bHasAudio;