Skip to content

Commit

Permalink
Update to Forge for 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Oct 1, 2023
1 parent 47b90c2 commit 333904f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'

def minecraftVersion = "1.20" // Used for output JAR filenames.
def minecraftVersion = "1.20.2" // Used for output JAR filenames.

version = project.mod_version
group = "yalter.mousetweaks"
Expand All @@ -38,7 +38,7 @@ mixin {
}

minecraft {
mappings channel: 'official', version: '1.20'
mappings channel: 'official', version: '1.20.2'

runs {
client {
Expand Down Expand Up @@ -70,7 +70,7 @@ minecraft {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.20-46.0.2'
minecraft 'net.minecraftforge:forge:1.20.2-48.0.13'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/yalter/mousetweaks/forge/MouseTweaksForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public void onGuiMouseScrollPost(MouseScrolled.Post event) {
// Sent when nothing handled the scroll itself. For example, the creative inventory handles scroll anywhere on
// screen, so this event is suppressed. Quick scrolls at limited FPS result in multiple scroll events rather
// than one with a bigger delta.
Logger.DebugLog("onGuiMouseScrollPost delta = " + event.getScrollDelta());
Logger.DebugLog("onGuiMouseScrollPost delta = " + event.getDeltaY());

// Post events aren't cancellable, but that's okay.
Main.onMouseScrolled(event.getScreen(), event.getMouseX(), event.getMouseY(), event.getScrollDelta());
Main.onMouseScrolled(event.getScreen(), event.getMouseX(), event.getMouseY(), event.getDeltaY());
}

@SubscribeEvent
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader="javafml"
loaderVersion="[46,)"
loaderVersion="[48,)"
license="BSD-3-Clause"
issueTrackerURL="https://github.com/YaLTeR/MouseTweaks/issues"

Expand Down

0 comments on commit 333904f

Please sign in to comment.