Skip to content

Commit

Permalink
1.18.2 compatibility (v2.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdvdev2 committed Mar 6, 2022
1 parent 091664b commit f505ef6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
9 changes: 2 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -25,12 +25,7 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"

def targetVersion = 8
if (JavaVersion.current().isJava9Compatible()) {
it.options.release.set(targetVersion)
}
it.options.release.set(17)
}

jar {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
org.gradle.jvmargs=-Xmx1G

minecraft_version=1.18
yarn_mappings=1.18+build.1
loader_version=0.12.8
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.2
loader_version=0.13.3

mod_version=1.4
mod_version=2.0
maven_group=com.rdvdev2
archives_base_name=DisableCustomWorldsAdvice

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public abstract class MixinMinecraftClient {

@ModifyVariable(
method = "startIntegratedServer(Ljava/lang/String;Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;Ljava/util/function/Function;Lcom/mojang/datafixers/util/Function4;ZLnet/minecraft/client/MinecraftClient$WorldLoadAction;)V",
method = "startIntegratedServer(Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Function;ZLnet/minecraft/client/MinecraftClient$WorldLoadAction;)V",
at = @At(value = "FIELD", target = "Lnet/minecraft/client/MinecraftClient$WorldLoadAction;NONE:Lnet/minecraft/client/MinecraftClient$WorldLoadAction;", ordinal = 0),
ordinal = 2,
index = 11,
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
"depends": {
"fabricloader": "*",
"minecraft": [
"~1.16.2",
"~1.17",
"~1.18"
"~1.18.2"
]
}
}

0 comments on commit f505ef6

Please sign in to comment.