Skip to content

Commit

Permalink
formattiiiiiiiiinnnnnnnnggggggg
Browse files Browse the repository at this point in the history
  • Loading branch information
viciscat committed Mar 20, 2024
1 parent a6927a2 commit e9f4b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/hysky/skyblocker/mixin/MouseMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
public class MouseMixin {

@ModifyExpressionValue(method = "updateMouse", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/option/SimpleOption;getValue()Ljava/lang/Object;", ordinal = 0))
public Object skyblocker$gardenMouseLock(Object original){
public Object skyblocker$gardenMouseLock(Object original) {
if (LowerSensitivity.isSensitivityLowered())
return -1/3d;
return -1 / 3d;
else return original;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
public class LowerSensitivity {

private static boolean sensitivityLowered = false;

public static void init() {
ClientTickEvents.END_WORLD_TICK.register(world -> {
if (!Utils.isOnSkyblock() || Utils.getLocation() != Location.GARDEN || MinecraftClient.getInstance().player == null) {
Expand Down

0 comments on commit e9f4b52

Please sign in to comment.