Skip to content

Commit

Permalink
Update to MC 1.20.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD authored and lucko committed Apr 23, 2024
1 parent 0f4c52e commit 40c7fd6
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
14 changes: 7 additions & 7 deletions spark-fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ plugins {
}

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

repositories {
Expand All @@ -28,9 +28,9 @@ configurations {

dependencies {
// https://modmuss50.me/fabric.html
minecraft 'com.mojang:minecraft:1.20.4'
mappings 'net.fabricmc:yarn:1.20.4+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.1'
minecraft 'com.mojang:minecraft:1.20.5'
mappings 'net.fabricmc:yarn:1.20.5+build.1:v2'
modImplementation 'net.fabricmc:fabric-loader:0.15.10'

Set<String> apiModules = [
"fabric-api-base",
Expand All @@ -40,12 +40,12 @@ dependencies {

// Add each module as a dependency
apiModules.forEach {
modImplementation(fabricApi.module(it, '0.91.2+1.20.4'))
modImplementation(fabricApi.module(it, '0.97.5+1.20.5'))
}

include(modImplementation('me.lucko:fabric-permissions-api:0.3.1'))

modImplementation('eu.pb4:placeholder-api:2.0.0-beta.4+1.19')
modImplementation('eu.pb4:placeholder-api:2.4.0-pre.1+1.20.5')

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.entity.player.PlayerEntity;
import net.minecraft.registry.DynamicRegistryManager;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.command.CommandOutput;
import net.minecraft.server.rcon.RconCommandOutput;
Expand Down Expand Up @@ -64,7 +65,7 @@ public UUID getUniqueId() {

@Override
public void sendMessage(Component message) {
Text component = Text.Serialization.fromJsonTree(GsonComponentSerializer.gson().serializeToTree(message));
Text component = Text.Serialization.fromJsonTree(GsonComponentSerializer.gson().serializeToTree(message), DynamicRegistryManager.EMPTY);
super.delegate.sendMessage(component);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private JsonElement datapackMetadata() {
obj.addProperty("name", profile.getDisplayName().getString());
obj.addProperty("description", profile.getDescription().getString());
obj.addProperty("source", resourcePackSource(profile.getSource()));
datapacks.add(profile.getName(), obj);
datapacks.add(profile.getId(), obj);
}
return datapacks;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import net.minecraft.registry.DynamicRegistryManager;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;

Expand Down Expand Up @@ -60,7 +61,7 @@ private static PlaceholderResult toResult(Component component) {
}

private static Text toText(Component component) {
return Text.Serialization.fromJsonTree(GsonComponentSerializer.gson().serializeToTree(component));
return Text.Serialization.fromJsonTree(GsonComponentSerializer.gson().serializeToTree(component), DynamicRegistryManager.EMPTY);
}
}

Expand Down
1 change: 0 additions & 1 deletion spark-fabric/src/main/resources/spark.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"required": true,
"package": "me.lucko.spark.fabric.mixin",
"compatibilityLevel": "JAVA_17",
"client": [
"ClientEntityManagerAccessor",
"ClientWorldAccessor",
Expand Down

0 comments on commit 40c7fd6

Please sign in to comment.