From d7616419bcd3a43c31c06f729e58d0f8a2ce3ae2 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sat, 11 May 2024 22:06:37 -0400 Subject: [PATCH] Fix Server Build --- mods/src/misc/api.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/src/misc/api.cpp b/mods/src/misc/api.cpp index 67821852d..fa2af14c5 100644 --- a/mods/src/misc/api.cpp +++ b/mods/src/misc/api.cpp @@ -3,7 +3,9 @@ #include #include +#ifndef MCPI_HEADLESS_MODE #include +#endif #include #include "misc-internal.h" @@ -143,7 +145,9 @@ static void Gui_handleKeyPressed_injection(Gui_handleKeyPressed_t original, Gui // Render Fancy Background void misc_render_background(int color, Minecraft *minecraft, int x, int y, int width, int height) { // https://github.com/ReMinecraftPE/mcpe/blob/f0d65eaecec1b3fe9c2f2b251e114a890c54ab77/source/client/gui/components/RolledSelectionList.cpp#L169-L179 +#ifndef MCPI_HEADLESS_MODE glColor4f(1, 1, 1, 1); +#endif std::string texture = "gui/background.png"; minecraft->textures->loadAndBindTexture(&texture); Tesselator *t = &Tesselator_instance;