Rebuild porting patches

This commit is contained in:
2025-06-17 19:18:23 +02:00
parent 7abf86dced
commit 34dc478e2e
99 changed files with 725 additions and 233 deletions

View File

@@ -1,11 +1,14 @@
--- a/Paper/build.gradle
+++ b/Paper/build.gradle
@@ -1,3 +1,5 @@
@@ -1,5 +1,7 @@
+import io.papermc.paperweight.userdev.ReobfArtifactConfiguration
+
plugins {
id "io.papermc.paperweight.userdev" version "1.7.3"
- id "io.papermc.paperweight.userdev" version "2.0.0-beta.17"
+ id "io.papermc.paperweight.userdev" version "1.7.3"
id "xyz.jpenilla.run-paper" version "2.3.0"
}
@@ -10,6 +12,8 @@
excludedResources = ["pack.mcmeta", "craterlib.mixins.json"]
}
@@ -20,7 +23,7 @@
compileTestJava.enabled = false
-tasks.assemble {
- dependsOn(tasks.reobfJar)
- dependsOn(tasks.shadowJar)
-}
-
publisher {

View File

@@ -1,10 +0,0 @@
--- a/Paper/src/main/java/com/hypherionmc/craterlib/common/PaperCompatHelper.java
+++ b/Paper/src/main/java/com/hypherionmc/craterlib/common/PaperCompatHelper.java
@@ -4,6 +4,7 @@
import com.hypherionmc.craterlib.core.platform.ModloaderEnvironment;
import com.hypherionmc.craterlib.nojang.world.entity.player.BridgedPlayer;
import com.hypherionmc.craterlib.utils.ChatUtils;
+import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.metadata.MetadataValue;

View File

@@ -0,0 +1,11 @@
--- a/Paper/src/main/java/com/hypherionmc/craterlib/common/PaperLoaderHelper.java
+++ b/Paper/src/main/java/com/hypherionmc/craterlib/common/PaperLoaderHelper.java
@@ -30,7 +30,7 @@
@Override
public String getGameVersion() {
- return SharedConstants.getCurrentVersion().name();
+ return SharedConstants.getCurrentVersion().getName();
}
@Override