From e0ab968fa3589f2317768508277fc8097a779ce3 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 18 May 2023 18:38:35 -0400 Subject: [PATCH] 2.4.7 --- VERSION | 2 +- docs/CHANGELOG.md | 6 ++++++ media-layer/core/src/media.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 7bf4b6a8a..e30309f73 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4.6 +2.4.7 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index cdd591e26..90dfa9db5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +**2.4.7** +* Improve Server Performance +* Add ``Add Biome Colors To Grass`` Feature Flag (Disabled By Default) +* Add ``Generate Caves`` Feature Flag (Enabled By Default) +* Allow Mods To Access The Original GLFW Keycode For Key Events + **2.4.6** * [Minimal Controller Support](CONTROLS.md) * Fix Holding Left-Click When Attacking diff --git a/media-layer/core/src/media.c b/media-layer/core/src/media.c index 0d5851d35..ff0bfa7f9 100644 --- a/media-layer/core/src/media.c +++ b/media-layer/core/src/media.c @@ -166,12 +166,12 @@ static SDLMod glfw_modifier_to_sdl_modifier(int mods) { } // Pass Key Presses To SDL -static void glfw_key_raw(int key, int scancode, int action, int mods) { +static void glfw_key_raw(int key, __attribute__((unused)) int scancode, int action, int mods) { SDL_Event event; int up = action == GLFW_RELEASE; event.type = up ? SDL_KEYUP : SDL_KEYDOWN; event.key.state = up ? SDL_RELEASED : SDL_PRESSED; - event.key.keysym.scancode = scancode; + event.key.keysym.scancode = key; // Allow MCPI To Access Original GLFW Keycode event.key.keysym.mod = glfw_modifier_to_sdl_modifier(mods); event.key.keysym.sym = glfw_key_to_sdl_key(key); SDL_PushEvent(&event);