From 5a4608df10b7f4d88a2d26c1537602dd3c0e3fb1 Mon Sep 17 00:00:00 2001 From: acth2 Date: Sat, 7 Mar 2026 01:19:56 +0100 Subject: [PATCH] Surrounding ~g_KBMInput~ with #ifdef _WINDOWS64 / #endif --- Minecraft.World/Player.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Minecraft.World/Player.cpp b/Minecraft.World/Player.cpp index df994e5bc..6eede7395 100644 --- a/Minecraft.World/Player.cpp +++ b/Minecraft.World/Player.cpp @@ -1858,7 +1858,9 @@ Player::BedSleepingResult Player::startSleepInBed(int x, int y, int z, bool bTes setPos(x + .5f, y + 15.0f / 16.0f, z + .5f); } m_isSleeping = true; + #ifdef _WINDOWS64 g_KBMInput.SetActiveMouse(false); + #endif sleepCounter = 0; bedPosition = new Pos(x, y, z); @@ -1930,7 +1932,9 @@ void Player::stopSleepInBed(bool forcefulWakeUp, bool updateLevelList, bool save } m_isSleeping = false; + #ifdef _WINDOWS64 g_KBMInput.SetActiveMouse(true); + #endif if (!level->isClientSide && updateLevelList) {