From 9370cbc7d878df1615d8ce76bc459e8b414d0f19 Mon Sep 17 00:00:00 2001 From: qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> Date: Thu, 5 Mar 2026 00:02:17 -0600 Subject: Modify dispense behavior to set outcome as LEFT_ITEM --- Minecraft.World/ItemDispenseBehaviors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Minecraft.World/ItemDispenseBehaviors.cpp b/Minecraft.World/ItemDispenseBehaviors.cpp index f66afe31..08c73a0c 100644 --- a/Minecraft.World/ItemDispenseBehaviors.cpp +++ b/Minecraft.World/ItemDispenseBehaviors.cpp @@ -288,10 +288,10 @@ shared_ptr FilledBucketDispenseBehavior::execute(BlockSource *sour return dispensed; } - return DefaultDispenseItemBehavior::dispense(source, dispensed); + outcome = LEFT_ITEM; + return dispensed; } - /* EmptyBucket */ shared_ptr EmptyBucketDispenseBehavior::execute(BlockSource *source, shared_ptr dispensed, eOUTCOME &outcome) @@ -454,4 +454,4 @@ shared_ptr TntDispenseBehavior::execute(BlockSource *source, share outcome = LEFT_ITEM; } return dispensed; -} \ No newline at end of file +} -- cgit v1.2.3 From 4b13b3345e077b5b5e65e1a3a7dc3c49b9b5a5bb Mon Sep 17 00:00:00 2001 From: qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> Date: Thu, 5 Mar 2026 18:01:13 -0600 Subject: Fix the angle problem with flying Removed checks that limit flying to a 90 degree angle, which caused the problem. --- Minecraft.Client/LocalPlayer.cpp | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/Minecraft.Client/LocalPlayer.cpp b/Minecraft.Client/LocalPlayer.cpp index 77306621..cfcf85ac 100644 --- a/Minecraft.Client/LocalPlayer.cpp +++ b/Minecraft.Client/LocalPlayer.cpp @@ -143,39 +143,8 @@ void LocalPlayer::serverAiStep() { Player::serverAiStep(); - if( abilities.flying && abilities.mayfly ) - { - // snap y rotation for flying to nearest 90 degrees in world space - float fMag = sqrtf(input->xa * input->xa + input->ya * input->ya); - // Don't bother for tiny inputs - if( fMag >= 0.1f ) - { - // Get angle (in player rotated space) of input controls - float yRotInput = atan2f(input->ya, input->xa) * (180.0f / PI); - // Now get in world space - float yRotFinal = yRotInput + yRot; - // Snap this to nearest 90 degrees - float yRotSnapped = floorf((yRotFinal / 45.0f) + 0.5f) * 45.0f; - // Find out how much we had to move to do this snap - float yRotDiff = yRotSnapped - yRotFinal; - // Apply the same difference to the player rotated space angle - float yRotInputAdjust = yRotInput + yRotDiff; - - // Calculate final x/y player-space movement required - this->xxa = cos(yRotInputAdjust * ( PI / 180.0f) ) * fMag; - this->yya = sin(yRotInputAdjust * ( PI / 180.0f) ) * fMag; - } - else - { - this->xxa = input->xa; - this->yya = input->ya; - } - } - else - { - this->xxa = input->xa; - this->yya = input->ya; - } + this->xxa = input->xa; + this->yya = input->ya; this->jumping = input->jumping; yBobO = yBob; -- cgit v1.2.3 From 255a18fe8e9b57377975f82e2b227afe2a12eda0 Mon Sep 17 00:00:00 2001 From: qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> Date: Thu, 5 Mar 2026 22:20:39 -0600 Subject: Fix crash by ensuring FOV is not less than 1 --- Minecraft.Client/GameRenderer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Minecraft.Client/GameRenderer.cpp b/Minecraft.Client/GameRenderer.cpp index 390f114d..174d356c 100644 --- a/Minecraft.Client/GameRenderer.cpp +++ b/Minecraft.Client/GameRenderer.cpp @@ -389,6 +389,8 @@ float GameRenderer::getFov(float a, bool applyEffects) shared_ptr player = dynamic_pointer_cast(mc->cameraTargetPlayer); int playerIdx = player ? player->GetXboxPad() : 0; float fov = m_fov;//70; + if (fov < 1) fov = 0.01; // Crash fix + if (applyEffects) { fov += mc->options->fov * 40; -- cgit v1.2.3 From d3599577279e215893abe4aa717576152c43c096 Mon Sep 17 00:00:00 2001 From: qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> Date: Mon, 16 Mar 2026 21:54:29 -0500 Subject: fix --- Minecraft.Client/GameRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/GameRenderer.cpp b/Minecraft.Client/GameRenderer.cpp index fe8171c1..4e808207 100644 --- a/Minecraft.Client/GameRenderer.cpp +++ b/Minecraft.Client/GameRenderer.cpp @@ -390,7 +390,7 @@ float GameRenderer::getFov(float a, bool applyEffects) shared_ptr player = dynamic_pointer_cast(mc->cameraTargetPlayer); int playerIdx = player ? player->GetXboxPad() : 0; float fov = m_fov;//70; - if (fov < 1) fov = 0.01; // Crash fix + if (fov < 1) fov = 1; // Crash fix if (applyEffects) { -- cgit v1.2.3