mirror of
https://github.com/AtlasMediaGroup/Scissors.git
synced 2024-12-30 19:37:38 +00:00
rebase on real paper
This commit is contained in:
parent
053b964635
commit
98104f3a8b
@ -8,8 +8,8 @@ plugins {
|
||||
|
||||
paperweight {
|
||||
upstreams.register("paper") {
|
||||
repo.set("/Users/jason/IdeaProjects/PaperMC/Softspoon/HistoryTest")
|
||||
ref.set("775ed1dab47a91c407c40b8b45391df40e357d32")
|
||||
repo.set("https://github.com/PaperMC/Paper.git")
|
||||
ref.set("aaf151c03d48f51b10f278e26143dd8ea9db6acb")
|
||||
paper = true
|
||||
|
||||
patchFile {
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- a/src/main/java/io/papermc/paper/advancement/AdvancementDisplay.java
|
||||
+++ b/src/main/java/io/papermc/paper/advancement/AdvancementDisplay.java
|
||||
@@ -27,7 +_,7 @@
|
||||
*
|
||||
* @return the frame type
|
||||
*/
|
||||
- Frame frame();
|
||||
+ Frame frame(); // patch
|
||||
|
||||
/**
|
||||
* Gets the advancement title.
|
@ -1,6 +1,13 @@
|
||||
--- a/paper-server/build.gradle.kts
|
||||
+++ b/paper-server/build.gradle.kts
|
||||
@@ -21,25 +_,38 @@
|
||||
@@ -1,5 +_,5 @@
|
||||
import io.papermc.paperweight.attribute.DevBundleOutput
|
||||
-import io.papermc.paperweight.core.ext
|
||||
+import io.papermc.paperweight.core.coreExt
|
||||
import io.papermc.paperweight.util.*
|
||||
import java.time.Instant
|
||||
|
||||
@@ -22,25 +_,38 @@
|
||||
// macheOldPath = file("F:\\Projects\\PaperTooling\\mache\\versions\\1.21.4\\src\\main\\java")
|
||||
// gitFilePatches = true
|
||||
|
||||
@ -51,7 +58,18 @@
|
||||
}
|
||||
|
||||
tasks.generateDevelopmentBundle {
|
||||
@@ -104,7 +_,20 @@
|
||||
@@ -52,8 +_,8 @@
|
||||
|
||||
// TODO remove me again, this is just to not run setupMacheSource when patches change
|
||||
tasks.setupMacheSources {
|
||||
- paperPatches.setFrom(project.ext.paper.sourcePatchDir.dir("com"), project.ext.paper.featurePatchDir)
|
||||
- // paperPatches.from(project.ext.paper.sourcePatchDir, project.ext.paper.featurePatchDir)
|
||||
+ // paperPatches.setFrom(project.coreExt.paper.sourcePatchDir.dir("com"), project.coreExt.paper.featurePatchDir)
|
||||
+ // paperPatches.from(project.coreExt.paper.sourcePatchDir, project.ext.paper.featurePatchDir)
|
||||
}
|
||||
|
||||
abstract class Services {
|
||||
@@ -111,7 +_,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,7 +91,7 @@
|
||||
configurations.named(log4jPlugins.compileClasspathConfigurationName) {
|
||||
extendsFrom(configurations.compileClasspath.get())
|
||||
}
|
||||
@@ -123,7 +_,7 @@
|
||||
@@ -130,7 +_,7 @@
|
||||
// Paper end - configure mockito agent that is needed in newer java versions
|
||||
|
||||
dependencies {
|
||||
@ -82,7 +100,7 @@
|
||||
implementation("ca.spottedleaf:concurrentutil:0.0.2") // Paper - Add ConcurrentUtil dependency
|
||||
// Paper start
|
||||
implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
|
||||
@@ -261,7 +_,7 @@
|
||||
@@ -263,7 +_,7 @@
|
||||
name: String,
|
||||
block: JavaExec.() -> Unit
|
||||
): TaskProvider<JavaExec> = register<JavaExec>(name) {
|
||||
@ -91,3 +109,20 @@
|
||||
mainClass.set("org.bukkit.craftbukkit.Main")
|
||||
standardInput = System.`in`
|
||||
workingDir = rootProject.layout.projectDirectory
|
||||
@@ -324,7 +_,7 @@
|
||||
}
|
||||
tasks.registerRunTask("runReobfBundler") {
|
||||
description = "Spin up a test server from the reobf bundler jar"
|
||||
- classpath(rootProject.tasks.named<io.papermc.paperweight.tasks.CreateBundlerJar>("createReobfBundlerJar").flatMap { it.outputZip })
|
||||
+ classpath(tasks.named<io.papermc.paperweight.tasks.CreateBundlerJar>("createReobfBundlerJar").flatMap { it.outputZip })
|
||||
mainClass.set(null as String?)
|
||||
}
|
||||
tasks.registerRunTask("runPaperclip") {
|
||||
@@ -334,6 +_,6 @@
|
||||
}
|
||||
tasks.registerRunTask("runReobfPaperclip") {
|
||||
description = "Spin up a test server from the reobf Paperclip jar"
|
||||
- classpath(rootProject.tasks.named<io.papermc.paperweight.tasks.CreatePaperclipJar>("createReobfPaperclipJar").flatMap { it.outputZip })
|
||||
+ classpath(tasks.named<io.papermc.paperweight.tasks.CreatePaperclipJar>("createReobfPaperclipJar").flatMap { it.outputZip })
|
||||
mainClass.set(null as String?)
|
||||
}
|
||||
|
18
fork-server/paper-patches/features/0001-feature-1.patch
Normal file
18
fork-server/paper-patches/features/0001-feature-1.patch
Normal file
@ -0,0 +1,18 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
|
||||
Date: Sun, 15 Dec 2024 00:07:29 -0700
|
||||
Subject: [PATCH] feature 1
|
||||
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/block/CraftBlockSoundGroup.java b/src/main/java/com/destroystokyo/paper/block/CraftBlockSoundGroup.java
|
||||
index 054ee606e7c36712e474e2b7093b436e043e6262..9d395898511ed5b408dacfb9c796baacb18b9430 100644
|
||||
--- a/src/main/java/com/destroystokyo/paper/block/CraftBlockSoundGroup.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/block/CraftBlockSoundGroup.java
|
||||
@@ -20,6 +20,7 @@ public class CraftBlockSoundGroup implements BlockSoundGroup {
|
||||
@Override
|
||||
public Sound getStepSound() {
|
||||
// file patch
|
||||
+ // feature patch
|
||||
return CraftSound.minecraftToBukkit(soundEffectType.getStepSound());
|
||||
}
|
||||
|
@ -0,0 +1,10 @@
|
||||
--- a/src/main/java/com/destroystokyo/paper/block/CraftBlockSoundGroup.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/block/CraftBlockSoundGroup.java
|
||||
@@ -19,6 +_,7 @@
|
||||
|
||||
@Override
|
||||
public Sound getStepSound() {
|
||||
+ // file patch
|
||||
return CraftSound.minecraftToBukkit(soundEffectType.getStepSound());
|
||||
}
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- a/src/main/java/test/FakeCraftServer.java
|
||||
+++ b/src/main/java/test/FakeCraftServer.java
|
||||
@@ -1,4 +_,5 @@
|
||||
package test;
|
||||
|
||||
public class FakeCraftServer {
|
||||
+ // Forked
|
||||
}
|
@ -12,11 +12,5 @@ plugins {
|
||||
|
||||
rootProject.name = "fork"
|
||||
|
||||
val forkApiDir = file("fork-api")
|
||||
if (forkApiDir.exists()) {
|
||||
include(forkApiDir.name)
|
||||
}
|
||||
val forkServerDir = file("fork-server")
|
||||
if (forkServerDir.exists()) {
|
||||
include(forkServerDir.name)
|
||||
}
|
||||
include("fork-api")
|
||||
include("fork-server")
|
||||
|
Loading…
Reference in New Issue
Block a user