Skip to content

Commit

Permalink
Update Forge to MC 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed May 6, 2024
1 parent 660c10e commit 8b6c266
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions spark-forge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugins {
id 'io.github.goooler.shadow' version '8.1.7'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id 'net.minecraftforge.gradle' version '[6.0.24,6.2)'
}

tasks.withType(JavaCompile) {
// override, compile targeting J17
options.release = 17
// override, compile targeting J21
options.release = 21
}

minecraft {
mappings channel: 'official', version: '1.20.4'
mappings channel: 'official', version: '1.20.6'
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
}

Expand All @@ -19,7 +19,7 @@ configurations {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.20.4-49.0.3'
minecraft 'net.minecraftforge:forge:1.20.6-50.0.6'
shade project(':spark-common')
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import net.minecraft.commands.CommandSource;
import net.minecraft.core.RegistryAccess;
import net.minecraft.network.chat.Component.Serializer;
import net.minecraft.network.chat.MutableComponent;
import net.minecraft.server.MinecraftServer;
Expand Down Expand Up @@ -66,7 +67,7 @@ public UUID getUniqueId() {

@Override
public void sendMessage(Component message) {
MutableComponent component = Serializer.fromJson(GsonComponentSerializer.gson().serializeToTree(message));
MutableComponent component = Serializer.fromJson(GsonComponentSerializer.gson().serializeToTree(message), RegistryAccess.EMPTY);
Objects.requireNonNull(component, "component");
super.delegate.sendSystemMessage(component);
}
Expand Down

0 comments on commit 8b6c266

Please sign in to comment.