Skip to content

Commit c304d69

Browse files
committed
Version 2.1.13master
* Fixed the sort key binding
1 parent cc58317 commit c304d69

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ org.gradle.jvmargs=-Xmx1G
1010

1111
# Mod Properties
1212
mod_id = mousewheelie
13-
mod_version = 1.2.12
13+
mod_version = 1.2.13
1414
maven_group = de.siphalor
1515
archives_base_name = mousewheelie
1616

src/main/java/de/siphalor/mousewheelie/client/mixin/MixinAbstractContainerScreen.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import org.spongepowered.asm.mixin.Shadow;
2525
import org.spongepowered.asm.mixin.injection.At;
2626
import org.spongepowered.asm.mixin.injection.Inject;
27-
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
2827
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
2928

3029
@SuppressWarnings("WeakerAccess")
@@ -80,6 +79,8 @@ public void onKeyPressed(int key, int scanCode, int int_3, CallbackInfoReturnabl
8079
}
8180
return true;
8281
});
82+
} else if(ClientCore.SORT_KEY_BINDING.matchesKey(key, scanCode)) {
83+
mouseWheelie_triggerSort();
8384
}
8485
}
8586

@@ -126,12 +127,6 @@ public void onMouseClick(double x, double y, int button, CallbackInfoReturnable<
126127
}
127128
}
128129

129-
@Inject(method = "tick", at = @At("HEAD"))
130-
public void tick(CallbackInfo callbackInfo) {
131-
if(ClientCore.SORT_KEY_BINDING.wasPressed())
132-
mouseWheelie_triggerSort();
133-
}
134-
135130
@Override
136131
public boolean mouseWheelie_onMouseScroll(double mouseX, double mouseY, double scrollAmount) {
137132
if(hasAltDown()) return false;

0 commit comments

Comments
 (0)