Fix Server Build
All checks were successful
CI / Build (AMD64, Client) (push) Successful in 13m1s
CI / Build (AMD64, Server) (push) Successful in 13m30s
CI / Build (ARM64, Server) (push) Successful in 14m22s
CI / Build (ARM64, Client) (push) Successful in 15m26s
CI / Build (ARMHF, Server) (push) Successful in 9m40s
CI / Build (ARMHF, Client) (push) Successful in 12m59s
CI / Test (Client) (push) Successful in 16m15s
CI / Test (Server) (push) Successful in 13m38s
CI / Release (push) Has been skipped
CI / Build Example Mods (push) Successful in 8m16s

This commit is contained in:
TheBrokenRail 2024-05-11 22:06:37 -04:00
parent 823495a811
commit d7616419bc

View File

@ -3,7 +3,9 @@
#include <libreborn/libreborn.h> #include <libreborn/libreborn.h>
#include <symbols/minecraft.h> #include <symbols/minecraft.h>
#ifndef MCPI_HEADLESS_MODE
#include <GLES/gl.h> #include <GLES/gl.h>
#endif
#include <mods/misc/misc.h> #include <mods/misc/misc.h>
#include "misc-internal.h" #include "misc-internal.h"
@ -143,7 +145,9 @@ static void Gui_handleKeyPressed_injection(Gui_handleKeyPressed_t original, Gui
// Render Fancy Background // Render Fancy Background
void misc_render_background(int color, Minecraft *minecraft, int x, int y, int width, int height) { 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 // https://github.com/ReMinecraftPE/mcpe/blob/f0d65eaecec1b3fe9c2f2b251e114a890c54ab77/source/client/gui/components/RolledSelectionList.cpp#L169-L179
#ifndef MCPI_HEADLESS_MODE
glColor4f(1, 1, 1, 1); glColor4f(1, 1, 1, 1);
#endif
std::string texture = "gui/background.png"; std::string texture = "gui/background.png";
minecraft->textures->loadAndBindTexture(&texture); minecraft->textures->loadAndBindTexture(&texture);
Tesselator *t = &Tesselator_instance; Tesselator *t = &Tesselator_instance;