Skip to content

Commit

Permalink
Version 2.1.13master
Browse files Browse the repository at this point in the history
* Fixed the sort key binding
  • Loading branch information
Siphalor committed Aug 18, 2019
1 parent cc58317 commit c304d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ org.gradle.jvmargs=-Xmx1G

# Mod Properties
mod_id = mousewheelie
mod_version = 1.2.12
mod_version = 1.2.13
maven_group = de.siphalor
archives_base_name = mousewheelie

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@SuppressWarnings("WeakerAccess")
Expand Down Expand Up @@ -80,6 +79,8 @@ public void onKeyPressed(int key, int scanCode, int int_3, CallbackInfoReturnabl
}
return true;
});
} else if(ClientCore.SORT_KEY_BINDING.matchesKey(key, scanCode)) {
mouseWheelie_triggerSort();
}
}

Expand Down Expand Up @@ -126,12 +127,6 @@ public void onMouseClick(double x, double y, int button, CallbackInfoReturnable<
}
}

@Inject(method = "tick", at = @At("HEAD"))
public void tick(CallbackInfo callbackInfo) {
if(ClientCore.SORT_KEY_BINDING.wasPressed())
mouseWheelie_triggerSort();
}

@Override
public boolean mouseWheelie_onMouseScroll(double mouseX, double mouseY, double scrollAmount) {
if(hasAltDown()) return false;
Expand Down

0 comments on commit c304d69

Please sign in to comment.