Skip to content

Commit

Permalink
Fix compatibility with new ImmediatelyFast
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <[email protected]>
  • Loading branch information
Octol1ttle committed Sep 2, 2023
1 parent 3af275d commit 5d1e8fb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modCompileOnlyApi "maven.modrinth:immediatelyfast:${project.immediatelyfast_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}+${project.minecraft_version}"
modCompileOnlyApi "maven.modrinth:immediatelyfast:${project.immediatelyfast_version}+${project.minecraft_version}"
}

processResources {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ minecraft_version=1.20.1
yarn_mappings=1.20.1+build.5
loader_version=0.14.7
#Fabric api
fabric_version=0.83.0+1.20.1
immediatelyfast_version=1.1.14+1.20.1
fabric_version=0.83.0
immediatelyfast_version=1.2.0
# Mod Properties
mod_version=1.20.1-fabric-7
mod_version=1.20.1-fabric-8
maven_group=net.torocraft
archives_base_name=flighthud
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

public class ImmediatelyFastBatchingAccessor {
public static void beginHudBatching() {
net.raphimc.immediatelyfast.feature.batching.BatchingBuffers.beginHudBatching();
net.raphimc.immediatelyfastapi.ImmediatelyFastApi.getApiImpl().getBatching().beginHudBatching();
}

public static void endHudBatching() {
net.raphimc.immediatelyfast.feature.batching.BatchingBuffers.endHudBatching();
net.raphimc.immediatelyfastapi.ImmediatelyFastApi.getApiImpl().getBatching().endHudBatching();
}
}
5 changes: 4 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"java": ">=17"
},
"recommends": {
"immediatelyfast": ">=1.1.1"
"immediatelyfast": ">=1.2.0"
},
"breaks": {
"immediatelyfast": "<1.2.0"
}
}

0 comments on commit 5d1e8fb

Please sign in to comment.