Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 85b16b8a Update to Minecraft 1.16.5 CraftBukkit Changes: f3f30947 Update to Minecraft 1.16.5 Spigot Changes: 018b9a0d Update to Minecraft 1.16.5
This commit is contained in:
parent
7438bbee46
commit
d3dc24999e
|
@ -10,7 +10,7 @@
|
|||
|
||||
<groupId>com.destroystokyo.paper</groupId>
|
||||
<artifactId>paper-mojangapi</artifactId>
|
||||
<version>1.16.4-R0.1-SNAPSHOT</version>
|
||||
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>Paper-MojangAPI</name>
|
||||
|
|
|
@ -5,7 +5,7 @@ Subject: [PATCH] POM changes
|
|||
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index e096e95e4e21ce4e4b4b08301f3b5948242bf00d..db8ebc72f9ddfb33a3aa3d2e0366ef4f6f324567 100644
|
||||
index 6b1cebc7fb6760a44359d81b029c4d8843125e49..ed19c62e5a2dbc7e660eae61aef21295afdb8aaf 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -2,34 +2,28 @@
|
||||
|
@ -22,7 +22,7 @@ index e096e95e4e21ce4e4b4b08301f3b5948242bf00d..db8ebc72f9ddfb33a3aa3d2e0366ef4f
|
|||
- <artifactId>spigot-api</artifactId>
|
||||
+ <groupId>com.destroystokyo.paper</groupId>
|
||||
+ <artifactId>paper-api</artifactId>
|
||||
<version>1.16.4-R0.1-SNAPSHOT</version>
|
||||
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
- <name>Spigot-API</name>
|
||||
|
|
|
@ -6,23 +6,23 @@ Subject: [PATCH] Use ASM for event executors.
|
|||
Uses method handles for private or static methods.
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 30253c7c0da5c5940fab16df0f118e1b167712e8..01263d58c48324131b8feb20404174e1d40754a5 100644
|
||||
index 58fc279186e01a4703102227f387e96272fcf0a7..e040e0e37276295a0b7404357679e80fbbb618a3 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -128,6 +128,17 @@
|
||||
<version>8.0.1</version>
|
||||
<version>9.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
+ <!-- ASM -->
|
||||
+ <dependency>
|
||||
+ <groupId>org.ow2.asm</groupId>
|
||||
+ <artifactId>asm</artifactId>
|
||||
+ <version>8.0.1</version>
|
||||
+ <version>9.0</version>
|
||||
+ </dependency>
|
||||
+ <dependency>
|
||||
+ <groupId>org.ow2.asm</groupId>
|
||||
+ <artifactId>asm-commons</artifactId>
|
||||
+ <version>8.0.1</version>
|
||||
+ <version>9.0</version>
|
||||
+ </dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@ it without having to shade it in the plugin and going through
|
|||
several layers of logging abstraction.
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 01263d58c48324131b8feb20404174e1d40754a5..1c33b1f4d2366116dd45478b8ad9cdb51fd6bb57 100644
|
||||
index e040e0e37276295a0b7404357679e80fbbb618a3..7747189d49727eea039f3994e186b34480025144 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -109,6 +109,13 @@
|
||||
<version>19.0.0</version>
|
||||
<version>20.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
+ <!-- Paper - Add SLF4J -->
|
||||
|
|
|
@ -5,7 +5,7 @@ Subject: [PATCH] POM Changes
|
|||
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e56fe310b 100644
|
||||
index a9d4c697fd52614cff7f035b5e9c7c52c925065b..301bee0db7b1118b2a6588c7ecfa9a6be5e1cd93 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -1,15 +1,14 @@
|
||||
|
@ -16,7 +16,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
- <artifactId>spigot</artifactId>
|
||||
+ <artifactId>paper</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.16.4-R0.1-SNAPSHOT</version>
|
||||
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||
- <name>Spigot</name>
|
||||
- <url>https://www.spigotmc.org/</url>
|
||||
+ <name>Paper</name>
|
||||
|
@ -27,8 +27,8 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
+ <!-- <skipTests>true</skipTests> Paper - This [was] not going to end well -->
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<api.version>unknown</api.version>
|
||||
<minecraft.version>1.16.4</minecraft.version>
|
||||
@@ -19,21 +18,27 @@
|
||||
<bt.name>git</bt.name>
|
||||
@@ -20,21 +19,27 @@
|
||||
</properties>
|
||||
|
||||
<parent>
|
||||
|
@ -61,8 +61,8 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<artifactId>minecraft-server</artifactId>
|
||||
<version>${minecraft.version}-SNAPSHOT</version>
|
||||
<scope>compile</scope>
|
||||
@@ -56,6 +61,17 @@
|
||||
<version>8.0.1</version>
|
||||
@@ -64,6 +69,17 @@
|
||||
<version>9.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
+ <dependency>
|
||||
|
@ -79,7 +79,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<!-- deprecated API depend -->
|
||||
<dependency>
|
||||
<groupId>com.googlecode.json-simple</groupId>
|
||||
@@ -112,34 +128,22 @@
|
||||
@@ -120,34 +136,22 @@
|
||||
|
||||
<!-- This builds a completely 'ready to start' jar with all dependencies inside -->
|
||||
<build>
|
||||
|
@ -101,7 +101,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<execution>
|
||||
- <id>ex-spigot</id>
|
||||
- <configuration>
|
||||
- <format>git-Spigot-%s</format>
|
||||
- <format>${bt.name}-Spigot-%s</format>
|
||||
- <scmDirectory>../</scmDirectory>
|
||||
- <descriptionProperty>spigot.desc</descriptionProperty>
|
||||
- </configuration>
|
||||
|
@ -125,7 +125,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
@@ -149,6 +153,7 @@
|
||||
@@ -157,6 +161,7 @@
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<configuration>
|
||||
|
@ -133,7 +133,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<archive>
|
||||
<manifest>
|
||||
<addDefaultEntries>false</addDefaultEntries>
|
||||
@@ -156,8 +161,9 @@
|
||||
@@ -164,8 +169,9 @@
|
||||
<manifestEntries>
|
||||
<Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
|
||||
<Implementation-Title>CraftBukkit</Implementation-Title>
|
||||
|
@ -145,7 +145,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<Specification-Title>Bukkit</Specification-Title>
|
||||
<Specification-Version>${api.version}</Specification-Version>
|
||||
<Specification-Vendor>Bukkit Team</Specification-Vendor>
|
||||
@@ -196,6 +202,7 @@
|
||||
@@ -204,14 +210,23 @@
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
|
@ -153,7 +153,9 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<createSourcesJar>${shadeSourcesJar}</createSourcesJar>
|
||||
<filters>
|
||||
<filter>
|
||||
@@ -204,6 +211,14 @@
|
||||
- <artifact>org.spigotmc:minecraft-server</artifact>
|
||||
+ <artifact>io.papermc:minecraft-server</artifact>
|
||||
<excludes>
|
||||
<exclude>com/google/common/**</exclude>
|
||||
<exclude>com/google/gson/**</exclude>
|
||||
<exclude>com/google/thirdparty/**</exclude>
|
||||
|
@ -168,7 +170,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
@@ -219,10 +234,11 @@
|
||||
@@ -227,10 +242,11 @@
|
||||
<pattern>jline</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.jline</shadedPattern>
|
||||
</relocation>
|
||||
|
@ -184,7 +186,7 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<relocation>
|
||||
<pattern>org.apache.commons.codec</pattern>
|
||||
<shadedPattern>org.bukkit.craftbukkit.libs.org.apache.commons.codec</shadedPattern>
|
||||
@@ -264,10 +280,6 @@
|
||||
@@ -272,10 +288,6 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
|
@ -196,13 +198,13 @@ index df982b5d1675f768017b06a899ea84237706b539..6490e605b560cda01489983be498868e
|
|||
<!-- we need our custom version as it fixes some bugs on case sensitive file systems -->
|
||||
<dependency>
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
index 9a26aa7807271fcaaa3a596d6861a05b6717ead2..2fc61b25c9553480814283ec0858d017c1d8b7e5 100644
|
||||
index 60ede7442b2d9a63fcd765aff29a96c9130aebac..3f52c19b6b797e26b3dcedcec2afd28c478e7091 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
@@ -186,7 +186,7 @@ public class Main {
|
||||
}
|
||||
|
||||
if (false && Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||
if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||
- Date buildDate = new Date(Integer.parseInt(Main.class.getPackage().getImplementationVendor()) * 1000L);
|
||||
+ Date buildDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(Main.class.getPackage().getImplementationVendor()); // Paper
|
||||
|
||||
|
|
|
@ -22,13 +22,13 @@ index 796c17e0941922a9716212c6eae91643d8360418..78948c42b13194005bdbbbc69c2b7ae0
|
|||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityFishingHook.java b/src/main/java/net/minecraft/server/EntityFishingHook.java
|
||||
index 7c152768afcb6259984120d97205601d74e15148..9db1c891b69d4fbe163b3272f22351f3d0b306d1 100644
|
||||
index 96e5246b6e6f285f3c1029147a6566f00b576a27..ad2ec3472a164bdf3a1ff2c42ec18c74ad58a13c 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityFishingHook.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityFishingHook.java
|
||||
@@ -46,6 +46,10 @@ public class EntityFishingHook extends IProjectile {
|
||||
entityhuman.hookedFish = this;
|
||||
this.an = Math.max(0, i);
|
||||
this.ao = Math.max(0, j);
|
||||
this.lureLevel = Math.max(0, j);
|
||||
+ // Paper start
|
||||
+ minWaitTime = world.paperConfig.fishingMinTicks;
|
||||
+ maxWaitTime = world.paperConfig.fishingMaxTicks;
|
||||
|
|
|
@ -19,10 +19,10 @@ Other changes:
|
|||
configuration
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 6490e605b560cda01489983be498868e56fe310b..fa902057491114bd7e919982c0970dd019d9e643 100644
|
||||
index 301bee0db7b1118b2a6588c7ecfa9a6be5e1cd93..0a6e1782c0eb8aa3aff94c5bfae5c5ea4a24ba56 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -44,10 +44,27 @@
|
||||
@@ -45,10 +45,27 @@
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -54,7 +54,7 @@ index 6490e605b560cda01489983be498868e56fe310b..fa902057491114bd7e919982c0970dd0
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
@@ -271,10 +288,18 @@
|
||||
@@ -279,10 +296,18 @@
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
||||
<resource>META-INF/services/java.sql.Driver</resource>
|
||||
</transformer>
|
||||
|
@ -186,7 +186,7 @@ index dc0cb79525adf0d5afee1f677e1fde546529cf97..750b1dc10ffb7adb9194e6cc8ace8fa9
|
|||
System.setOut(IoBuilder.forLogger(logger).setLevel(Level.INFO).buildPrintStream());
|
||||
System.setErr(IoBuilder.forLogger(logger).setLevel(Level.WARN).buildPrintStream());
|
||||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
index 836fdfcedb6b878c69bfa22cbbe1fc10a25d8ad0..b14381fd33b19a511106046d0c66d58353c57e7d 100644
|
||||
index c6b520f3f8872a0345f76a75f0b48fe113021716..ee009052eb10125bbaca95b5fda306adbd8a9995 100644
|
||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
@@ -58,7 +58,7 @@ import org.apache.logging.log4j.LogManager;
|
||||
|
@ -286,7 +286,7 @@ index 60d5de863b3abf364e0895d1b83c836b75e1e2be..921434d9adf0b2c55c1194a3f258ffad
|
|||
@Override
|
||||
public PluginCommand getPluginCommand(String name) {
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
index c4bd353a53bf620644492d2629ab0ab07cb267c2..1c4c72800550806fd3daddc94cd0cb7a23e897e4 100644
|
||||
index 78b6d00ea40e8d7c450e08e444c5231e7c99969b..78fad8d06540a0cf41302f12bf25e08e49f589d9 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||
@@ -12,7 +12,7 @@ import java.util.logging.Level;
|
||||
|
@ -325,7 +325,7 @@ index c4bd353a53bf620644492d2629ab0ab07cb267c2..1c4c72800550806fd3daddc94cd0cb7a
|
|||
+ System.setProperty(TerminalConsoleAppender.JLINE_OVERRIDE_PROPERTY, "false"); // Paper
|
||||
}
|
||||
|
||||
if (false && Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||
if (Main.class.getPackage().getImplementationVendor() != null && System.getProperty("IReallyKnowWhatIAmDoingISwear") == null) {
|
||||
@@ -226,7 +237,7 @@ public class Main {
|
||||
System.out.println("Unable to read system info");
|
||||
}
|
||||
|
|
|
@ -15,10 +15,10 @@ This may cause additional prefixes to be disabled for plugins bypassing
|
|||
the plugin logger.
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 7c775cb6b51be98e2a257a5e2774e23f35e46369..50379bfe731eb9538f365275c04a764b02944633 100644
|
||||
index 0a6e1782c0eb8aa3aff94c5bfae5c5ea4a24ba56..14d365756efbe2067c049659eb9076ab1e3415ef 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -64,7 +64,7 @@
|
||||
@@ -65,7 +65,7 @@
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<version>2.8.1</version>
|
||||
|
|
|
@ -5,10 +5,10 @@ Subject: [PATCH] Include Log4J2 SLF4J implementation
|
|||
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 50379bfe731eb9538f365275c04a764b02944633..0c7a485ae7c2fbb5aa4c892d75a314a75056ba9a 100644
|
||||
index 14d365756efbe2067c049659eb9076ab1e3415ef..a58e4aa63164aa6ae4e7ecf87ea9c46c73fcb8f4 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -66,6 +66,12 @@
|
||||
@@ -67,6 +67,12 @@
|
||||
<version>2.8.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -5,12 +5,12 @@ Subject: [PATCH] Use asynchronous Log4j 2 loggers
|
|||
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 0c7a485ae7c2fbb5aa4c892d75a314a75056ba9a..2349491a15393a450d80397dd92c5733b28a3482 100644
|
||||
index a58e4aa63164aa6ae4e7ecf87ea9c46c73fcb8f4..ba6e70eb472bda9d0cf51c3b69a5bd41fc24c399 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -78,6 +78,13 @@
|
||||
<version>2.8.1</version>
|
||||
<scope>compile</scope>
|
||||
@@ -86,6 +86,13 @@
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
+ <!-- Paper - Async loggers -->
|
||||
+ <dependency>
|
||||
|
|
|
@ -49,40 +49,22 @@ index 0000000000000000000000000000000000000000..8183c94ff4883e1af02e82098f1f80cf
|
|||
+ }
|
||||
+}
|
||||
diff --git a/src/main/java/net/minecraft/server/SoundEffectType.java b/src/main/java/net/minecraft/server/SoundEffectType.java
|
||||
index 5ed0cddfe6357031644e9e59e6674aa1505ddd8c..e9ea2d04c10d5866f6e5c262e518ec63f0911d94 100644
|
||||
index 49093a5294d5e64ac149e6922e884e72f9f56c03..5f5153ec781c73d76bbf0b5b14b45bf4b74faefd 100644
|
||||
--- a/src/main/java/net/minecraft/server/SoundEffectType.java
|
||||
+++ b/src/main/java/net/minecraft/server/SoundEffectType.java
|
||||
@@ -51,10 +51,10 @@ public class SoundEffectType {
|
||||
public static final SoundEffectType U = new SoundEffectType(1.0F, 1.0F, SoundEffects.BLOCK_GILDED_BLACKSTONE_BREAK, SoundEffects.BLOCK_GILDED_BLACKSTONE_STEP, SoundEffects.BLOCK_GILDED_BLACKSTONE_PLACE, SoundEffects.BLOCK_GILDED_BLACKSTONE_HIT, SoundEffects.BLOCK_GILDED_BLACKSTONE_FALL);
|
||||
public final float V;
|
||||
public final float W;
|
||||
- public final SoundEffect X; // PAIL private -> public, rename breakSound
|
||||
+ public final SoundEffect X; public final SoundEffect getBreakSound() { return this.X; } // Paper - OBFHELPER // PAIL private -> public, rename breakSound
|
||||
private final SoundEffect Y;
|
||||
private final SoundEffect Z;
|
||||
- public final SoundEffect aa; // PAIL private -> public, rename hitSound
|
||||
+ public final SoundEffect aa; public final SoundEffect getHitSound() { return this.aa; } // Paper - OBFHELPER // PAIL private -> public, rename hitSound
|
||||
private final SoundEffect ab;
|
||||
public final float volume;
|
||||
public final float pitch;
|
||||
- public final SoundEffect breakSound;
|
||||
+ public final SoundEffect breakSound; public final SoundEffect getBreakSound() { return this.breakSound; } // Paper - OBFHELPER // PAIL private -> public, rename breakSound
|
||||
private final SoundEffect stepSound;
|
||||
private final SoundEffect placeSound;
|
||||
- public final SoundEffect hitSound;
|
||||
+ public final SoundEffect hitSound; public final SoundEffect getHitSound() { return this.hitSound; } // Paper - OBFHELPER // PAIL private -> public, rename hitSound
|
||||
private final SoundEffect fallSound;
|
||||
|
||||
public SoundEffectType(float f, float f1, SoundEffect soundeffect, SoundEffect soundeffect1, SoundEffect soundeffect2, SoundEffect soundeffect3, SoundEffect soundeffect4) {
|
||||
@@ -75,14 +75,17 @@ public class SoundEffectType {
|
||||
return this.W;
|
||||
}
|
||||
|
||||
+ public final SoundEffect getStepSound() { return this.d(); } // Paper - OBFHELPER
|
||||
public SoundEffect d() {
|
||||
return this.Y;
|
||||
}
|
||||
|
||||
+ public final SoundEffect getPlaceSound() { return this.e(); } // Paper - OBFHELPER
|
||||
public SoundEffect e() {
|
||||
return this.Z;
|
||||
}
|
||||
|
||||
+ public final SoundEffect getFallSound() { return this.g(); } // Paper - OBFHELPER
|
||||
public SoundEffect g() {
|
||||
return this.ab;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||
index 661bb54c27966c8050644b293d99dfe86e3c04ce..41bd71a55626b933c948e5c7e7b8af534eb896c4 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||
|
|
|
@ -28,7 +28,7 @@ index 6c8e9d498c9a30a1aa88494ba09c3cae012a8fa1..cd248eb6be663e8be33f2c3c6b06b77b
|
|||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
index f5120de89959d6f4df94bfd37657f390e9892f55..1647c36c2b8f81be59ed48eb329977331aa709b1 100644
|
||||
index 272f05ac46f9fc2d430f70535a7a44cebea2dbda..96a784744110e7dd4939eb2c1b57346a2d60f983 100644
|
||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
@@ -655,7 +655,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
|
@ -38,5 +38,5 @@ index f5120de89959d6f4df94bfd37657f390e9892f55..1647c36c2b8f81be59ed48eb32997733
|
|||
- chunkproviderserver.getLightEngine().a(5);
|
||||
+ chunkproviderserver.getLightEngine().a(worldserver.paperConfig.lightQueueSize); // Paper - increase light queue size
|
||||
// CraftBukkit start
|
||||
// this.bc();
|
||||
// this.updateSpawnFlags();
|
||||
worldserver.setSpawnFlags(this.getSpawnMonsters(), this.getSpawnAnimals());
|
||||
|
|
|
@ -5,10 +5,10 @@ Subject: [PATCH] Implement Mob Goal API
|
|||
|
||||
|
||||
diff --git a/pom.xml b/pom.xml
|
||||
index 2349491a15393a450d80397dd92c5733b28a3482..80f165291385f5f54def1a8e8487b209fb06a4a3 100644
|
||||
index ba6e70eb472bda9d0cf51c3b69a5bd41fc24c399..9ba379b7e3ee3bc8c6d2c8ec46213c404c73d682 100644
|
||||
--- a/pom.xml
|
||||
+++ b/pom.xml
|
||||
@@ -134,6 +134,13 @@
|
||||
@@ -142,6 +142,13 @@
|
||||
<version>1.3</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -39,7 +39,7 @@ index f5792b999ce42acb13ae9a62ceb2ddec39abe209..5504facd2e453238caa71d98743be541
|
|||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
index 319740c0256a6ad2544b4997c835235e4d3a4a9a..820c680f1039f747797a758cece5014f3159e508 100644
|
||||
index d0ce4b96174f85c545a457fe864c7ebadc727ade..ca417825eb0827caad817f65b5132f1de37e3679 100644
|
||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||
@@ -1524,11 +1524,14 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
|
||||
|
@ -47,17 +47,15 @@ index 319740c0256a6ad2544b4997c835235e4d3a4a9a..820c680f1039f747797a758cece5014f
|
|||
}
|
||||
|
||||
- public void a(EnumDifficulty enumdifficulty, boolean flag) {
|
||||
- if (flag || !this.saveData.isDifficultyLocked()) {
|
||||
- this.saveData.setDifficulty(this.saveData.isHardcore() ? EnumDifficulty.HARD : enumdifficulty);
|
||||
- this.bc();
|
||||
- this.getPlayerList().getPlayers().forEach(this::b);
|
||||
+ // Paper start - fix per world difficulty
|
||||
+ public void a(WorldServer world, EnumDifficulty enumdifficulty, boolean flag) {
|
||||
+ WorldDataServer worldData = world.worldDataServer;
|
||||
+ if (flag || !worldData.isDifficultyLocked()) {
|
||||
+ worldData.setDifficulty(worldData.isHardcore() ? EnumDifficulty.HARD : enumdifficulty);
|
||||
if (flag || !this.saveData.isDifficultyLocked()) {
|
||||
this.saveData.setDifficulty(this.saveData.isHardcore() ? EnumDifficulty.HARD : enumdifficulty);
|
||||
- this.updateSpawnFlags();
|
||||
- this.getPlayerList().getPlayers().forEach(this::b);
|
||||
+ world.setSpawnFlags(worldData.getDifficulty() != EnumDifficulty.PEACEFUL && ((DedicatedServer)this).propertyManager.getProperties().spawnMonsters, this.getSpawnAnimals());
|
||||
+ //world.players.forEach(this::b);
|
||||
+ //this.getPlayerList().getPlayers().forEach(this::b);
|
||||
+ // Paper end
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,15 +5,15 @@ Subject: [PATCH] Fix CME on adding a passenger in CreatureSpawnEvent
|
|||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
||||
index 81ff0fd4587d0220f49573c393c8412e2b55d115..50669b68ae130ec43ea52d2e62d55d633eecb042 100644
|
||||
index 1840d64d1bbb1165981f79dd3deeb19816e6a230..e39be18fe6b45a1a53cb484c656872dda00fa274 100644
|
||||
--- a/src/main/java/net/minecraft/server/Entity.java
|
||||
+++ b/src/main/java/net/minecraft/server/Entity.java
|
||||
@@ -3085,7 +3085,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||
}
|
||||
|
||||
public Stream<Entity> cp() {
|
||||
- return Stream.concat(Stream.of(this), this.passengers.stream().flatMap(Entity::cp));
|
||||
+ return Stream.concat(Stream.of(this), com.google.common.collect.ImmutableList.copyOf(this.passengers).stream().flatMap(Entity::cp)); // Paper
|
||||
public Stream<Entity> recursiveStream() {
|
||||
- return Stream.concat(Stream.of(this), this.passengers.stream().flatMap(Entity::recursiveStream));
|
||||
+ return Stream.concat(Stream.of(this), com.google.common.collect.ImmutableList.copyOf(this.passengers).stream().flatMap(Entity::recursiveStream)); // Paper
|
||||
}
|
||||
|
||||
public boolean hasSinglePlayerPassenger() {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 501ea060743c7bba4436878207e4f1232298efce
|
||||
Subproject commit 656df5e622bba97efb4e858e8cd3ec428a0b2d71
|
|
@ -1 +1 @@
|
|||
Subproject commit 0958895aefcccb79abb4d703d5a8694af7416e4a
|
||||
Subproject commit 85b16b8a5f044eb8d38375c23e8968641d18a933
|
|
@ -1 +1 @@
|
|||
Subproject commit 7a6c3c9aa6e48de164aeeb78052a7775f3f81c30
|
||||
Subproject commit f3f30947e07c4ea07dcbf41129c2ca830a73fd4d
|
|
@ -1 +1 @@
|
|||
Subproject commit a93cbb1e986c59ffd888f072490db0afe4119093
|
||||
Subproject commit 018b9a0d5a7a03eeabe2b2d7d74bca56db2e9949
|
Loading…
Reference in New Issue