Skip to content

Commit

Permalink
Merge pull request #1196 from P3pp3rF1y/1.20.x-dev
Browse files Browse the repository at this point in the history
fix: 🐛 Fixed sorting to trigger when cursor is anywhere outside of st…
  • Loading branch information
P3pp3rF1y authored Nov 6, 2024
2 parents 2da4ae8 + 82e2dc4 commit 836f7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=false

mod_id=sophisticatedbackpacks
mod_group_id=sophisticatedbackpacks
mod_version=3.20.11
mod_version=3.20.12
sonar_project_key=sophisticatedbackpacks:SophisticatedBackpacks
github_package_url=https://maven.pkg.github.com/P3pp3rF1y/SophisticatedBackpacks

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private static boolean tryCallSort(Screen gui) {
double mouseX = mh.xpos() * mc.getWindow().getGuiScaledWidth() / mc.getWindow().getScreenWidth();
double mouseY = mh.ypos() * mc.getWindow().getGuiScaledHeight() / mc.getWindow().getScreenHeight();
Slot selectedSlot = screen.findSlot(mouseX, mouseY);
if (selectedSlot != null && container.isNotPlayersInventorySlot(selectedSlot.index)) {
if (selectedSlot == null || container.isNotPlayersInventorySlot(selectedSlot.index)) {
container.sort();
return true;
}
Expand Down

0 comments on commit 836f7fc

Please sign in to comment.