Skip to content

Commit 696d121

Browse files
committed
Update upstream
1 parent 36f3d36 commit 696d121

32 files changed

+114
-455
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
33

44
plugins {
55
java // TODO java launcher tasks
6-
id("io.papermc.paperweight.patcher") version "2.0.0-beta.17"
6+
id("io.papermc.paperweight.patcher") version "2.0.0-beta.19"
77
}
88

99
paperweight {
@@ -55,7 +55,7 @@ subprojects {
5555
options.encoding = Charsets.UTF_8.name()
5656
options.release = 21
5757
options.isFork = true
58-
options.compilerArgs.add("-Xlint:-removal")
58+
options.compilerArgs.addAll(listOf("-Xlint:-deprecation", "-Xlint:-removal"))
5959
}
6060
tasks.withType<Javadoc> {
6161
options.encoding = Charsets.UTF_8.name()

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
group=de.erethon.papyrus
2-
version=1.21.8-R0.1-SNAPSHOT
3-
mcVersion=1.21.8
4-
paperRef=9aaaadffaa0caad086cf04709904b47eaac161d7
2+
version=1.21.9-R0.1-SNAPSHOT
3+
mcVersion=1.21.9
4+
paperRef=dad730f2948e4ed0cb42f2af79009ffea4541ba5
55

66
org.gradle.configuration-cache=true
77
org.gradle.caching=true

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
114114
NONSTOP* ) nonstop=true ;;
115115
esac
116116

117-
CLASSPATH="\\\"\\\""
118117

119118

120119
# Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
172171
# For Cygwin or MSYS, switch paths to Windows format before running java
173172
if "$cygwin" || "$msys" ; then
174173
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
175-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
176174

177175
JAVACMD=$( cygpath --unix "$JAVACMD" )
178176

@@ -212,7 +210,6 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
212210

213211
set -- \
214212
"-Dorg.gradle.appname=$APP_BASE_NAME" \
215-
-classpath "$CLASSPATH" \
216213
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
217214
"$@"
218215

gradlew.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ goto fail
7070
:execute
7171
@rem Setup the command line
7272

73-
set CLASSPATH=
7473

7574

7675
@rem Execute Gradle
77-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
76+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
7877

7978
:end
8079
@rem End local scope for the variables with windows NT shell

papyrus-api/build.gradle.kts.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
options.use()
4141
options.isDocFilesSubDirs = true
4242
options.links(
43-
@@ -199,11 +_,11 @@
43+
@@ -201,11 +_,11 @@
4444
}
4545

4646
// workaround for https://github.com/gradle/gradle/issues/4046

papyrus-api/paper-patches/files/src/main/java/org/bukkit/Server.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import net.kyori.adventure.text.Component;
1010
import net.kyori.adventure.text.minimessage.MiniMessage;
1111
import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
12-
@@ -2723,4 +_,6 @@
12+
@@ -2760,4 +_,6 @@
1313
*/
1414
void allowPausing(@NotNull org.bukkit.plugin.Plugin plugin, boolean value);
1515
// Paper end - API to check if the server is sleeping

papyrus-api/paper-patches/files/src/main/java/org/bukkit/entity/LivingEntity.java.patch

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
22
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
3-
@@ -6,6 +_,8 @@
4-
import java.util.UUID;
5-
import io.papermc.paper.world.damagesource.CombatTracker;
6-
import io.papermc.paper.world.damagesource.FallLocationType;
7-
+
8-
+import de.erethon.spellbook.api.SpellCaster;
9-
import org.bukkit.FluidCollisionMode;
10-
import org.bukkit.Location;
11-
import org.bukkit.Material;
12-
@@ -30,7 +_,7 @@
3+
@@ -29,7 +_,7 @@
134
/**
145
* Represents a living entity, such as a monster or player
156
*/
167
-public interface LivingEntity extends Attributable, Damageable, ProjectileSource, io.papermc.paper.entity.Frictional { // Paper
17-
+public interface LivingEntity extends Attributable, Damageable, ProjectileSource, io.papermc.paper.entity.Frictional, SpellCaster { // Papyrus
8+
+public interface LivingEntity extends Attributable, Damageable, ProjectileSource, io.papermc.paper.entity.Frictional, de.erethon.spellbook.api.SpellCaster { // Papyrus
189

1910
/**
2011
* Gets the height of the living entity's eyes above its Location.
21-
@@ -1455,6 +_,12 @@
12+
@@ -1466,6 +_,12 @@
2213
*/
2314
boolean canUseEquipmentSlot(org.bukkit.inventory.@NotNull EquipmentSlot slot);
2415
// Paper end - Expose canUseSlot

papyrus-server/build.gradle.kts.patch

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
configurations.named(log4jPlugins.compileClasspathConfigurationName) {
4040
extendsFrom(configurations.compileClasspath.get())
4141
}
42-
@@ -129,7 +_,7 @@
42+
@@ -130,7 +_,7 @@
4343
}
4444

4545
dependencies {
4646
- implementation(project(":paper-api"))
4747
+ implementation(project(":papyrus-api"))
48-
implementation("ca.spottedleaf:concurrentutil:0.0.3")
48+
implementation("ca.spottedleaf:concurrentutil:0.0.5")
4949
implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
5050
implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21
5151
@@ -186,6 +_,9 @@
@@ -92,3 +92,18 @@
9292
sourceSets {
9393
main {
9494
java {
95+
@@ -358,7 +_,7 @@
96+
mainClass.set(null as String?)
97+
}
98+
99+
-fill {
100+
+/**fill { // Papyrus - We don't use fill
101+
project("paper")
102+
versionFamily(paperweight.minecraftVersion.map { it.split(".", "-").takeWhile { part -> part.toIntOrNull() != null }.take(2).joinToString(".") })
103+
version(paperweight.minecraftVersion)
104+
@@ -373,4 +_,4 @@
105+
}
106+
}
107+
}
108+
-}
109+
+}**/

0 commit comments

Comments
 (0)