diff --git a/VERSION b/VERSION index 7bf4b6a..e30309f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4.6 +2.4.7 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index cdd591e..90dfa9d 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 0d5851d..ff0bfa7 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);