mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-02 13:23:50 -07:00
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:
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<groupId>com.destroystokyo.paper</groupId>
|
<groupId>com.destroystokyo.paper</groupId>
|
||||||
<artifactId>paper-mojangapi</artifactId>
|
<artifactId>paper-mojangapi</artifactId>
|
||||||
<version>1.16.4-R0.1-SNAPSHOT</version>
|
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>Paper-MojangAPI</name>
|
<name>Paper-MojangAPI</name>
|
||||||
|
@@ -18,7 +18,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/pom.xml
|
--- a/pom.xml
|
||||||
+++ b/pom.xml
|
+++ b/pom.xml
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
<version>19.0.0</version>
|
<version>20.1.0</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
+ <!-- Paper - Add SLF4J -->
|
+ <!-- Paper - Add SLF4J -->
|
||||||
|
@@ -22,7 +22,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <artifactId>spigot-api</artifactId>
|
- <artifactId>spigot-api</artifactId>
|
||||||
+ <groupId>com.destroystokyo.paper</groupId>
|
+ <groupId>com.destroystokyo.paper</groupId>
|
||||||
+ <artifactId>paper-api</artifactId>
|
+ <artifactId>paper-api</artifactId>
|
||||||
<version>1.16.4-R0.1-SNAPSHOT</version>
|
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
- <name>Spigot-API</name>
|
- <name>Spigot-API</name>
|
||||||
|
@@ -10,19 +10,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/pom.xml
|
--- a/pom.xml
|
||||||
+++ b/pom.xml
|
+++ b/pom.xml
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
<version>8.0.1</version>
|
<version>9.0</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
+ <!-- ASM -->
|
+ <!-- ASM -->
|
||||||
+ <dependency>
|
+ <dependency>
|
||||||
+ <groupId>org.ow2.asm</groupId>
|
+ <groupId>org.ow2.asm</groupId>
|
||||||
+ <artifactId>asm</artifactId>
|
+ <artifactId>asm</artifactId>
|
||||||
+ <version>8.0.1</version>
|
+ <version>9.0</version>
|
||||||
+ </dependency>
|
+ </dependency>
|
||||||
+ <dependency>
|
+ <dependency>
|
||||||
+ <groupId>org.ow2.asm</groupId>
|
+ <groupId>org.ow2.asm</groupId>
|
||||||
+ <artifactId>asm-commons</artifactId>
|
+ <artifactId>asm-commons</artifactId>
|
||||||
+ <version>8.0.1</version>
|
+ <version>9.0</version>
|
||||||
+ </dependency>
|
+ </dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@@ -0,0 +0,0 @@ public class EntityFishingHook extends IProjectile {
|
@@ -0,0 +0,0 @@ public class EntityFishingHook extends IProjectile {
|
||||||
entityhuman.hookedFish = this;
|
entityhuman.hookedFish = this;
|
||||||
this.an = Math.max(0, i);
|
this.an = Math.max(0, i);
|
||||||
this.ao = Math.max(0, j);
|
this.lureLevel = Math.max(0, j);
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ minWaitTime = world.paperConfig.fishingMinTicks;
|
+ minWaitTime = world.paperConfig.fishingMinTicks;
|
||||||
+ maxWaitTime = world.paperConfig.fishingMaxTicks;
|
+ maxWaitTime = world.paperConfig.fishingMaxTicks;
|
||||||
|
@@ -11,9 +11,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
@@ -0,0 +0,0 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
||||||
}
|
}
|
||||||
|
|
||||||
public Stream<Entity> cp() {
|
public Stream<Entity> recursiveStream() {
|
||||||
- return Stream.concat(Stream.of(this), this.passengers.stream().flatMap(Entity::cp));
|
- 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::cp)); // Paper
|
+ return Stream.concat(Stream.of(this), com.google.common.collect.ImmutableList.copyOf(this.passengers).stream().flatMap(Entity::recursiveStream)); // Paper
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasSinglePlayerPassenger() {
|
public boolean hasSinglePlayerPassenger() {
|
||||||
|
@@ -47,17 +47,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
- public void a(EnumDifficulty enumdifficulty, boolean flag) {
|
- 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
|
+ // Paper start - fix per world difficulty
|
||||||
+ public void a(WorldServer world, EnumDifficulty enumdifficulty, boolean flag) {
|
+ public void a(WorldServer world, EnumDifficulty enumdifficulty, boolean flag) {
|
||||||
+ WorldDataServer worldData = world.worldDataServer;
|
+ WorldDataServer worldData = world.worldDataServer;
|
||||||
+ if (flag || !worldData.isDifficultyLocked()) {
|
if (flag || !this.saveData.isDifficultyLocked()) {
|
||||||
+ worldData.setDifficulty(worldData.isHardcore() ? EnumDifficulty.HARD : enumdifficulty);
|
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.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
|
+ // Paper end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -54,35 +54,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+++ b/src/main/java/net/minecraft/server/SoundEffectType.java
|
+++ b/src/main/java/net/minecraft/server/SoundEffectType.java
|
||||||
@@ -0,0 +0,0 @@ public class SoundEffectType {
|
@@ -0,0 +0,0 @@ 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 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 volume;
|
||||||
public final float W;
|
public final float pitch;
|
||||||
- public final SoundEffect X; // PAIL private -> public, rename breakSound
|
- public final SoundEffect breakSound;
|
||||||
+ public final SoundEffect X; public final SoundEffect getBreakSound() { return this.X; } // Paper - OBFHELPER // PAIL private -> public, rename breakSound
|
+ public final SoundEffect breakSound; public final SoundEffect getBreakSound() { return this.breakSound; } // Paper - OBFHELPER // PAIL private -> public, rename breakSound
|
||||||
private final SoundEffect Y;
|
private final SoundEffect stepSound;
|
||||||
private final SoundEffect Z;
|
private final SoundEffect placeSound;
|
||||||
- public final SoundEffect aa; // PAIL private -> public, rename hitSound
|
- public final SoundEffect hitSound;
|
||||||
+ public final SoundEffect aa; public final SoundEffect getHitSound() { return this.aa; } // Paper - OBFHELPER // PAIL private -> public, rename hitSound
|
+ public final SoundEffect hitSound; public final SoundEffect getHitSound() { return this.hitSound; } // Paper - OBFHELPER // PAIL private -> public, rename hitSound
|
||||||
private final SoundEffect ab;
|
private final SoundEffect fallSound;
|
||||||
|
|
||||||
public SoundEffectType(float f, float f1, SoundEffect soundeffect, SoundEffect soundeffect1, SoundEffect soundeffect2, SoundEffect soundeffect3, SoundEffect soundeffect4) {
|
public SoundEffectType(float f, float f1, SoundEffect soundeffect, SoundEffect soundeffect1, SoundEffect soundeffect2, SoundEffect soundeffect3, SoundEffect soundeffect4) {
|
||||||
@@ -0,0 +0,0 @@ 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
|
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
|
||||||
|
@@ -38,5 +38,5 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- chunkproviderserver.getLightEngine().a(5);
|
- chunkproviderserver.getLightEngine().a(5);
|
||||||
+ chunkproviderserver.getLightEngine().a(worldserver.paperConfig.lightQueueSize); // Paper - increase light queue size
|
+ chunkproviderserver.getLightEngine().a(worldserver.paperConfig.lightQueueSize); // Paper - increase light queue size
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
// this.bc();
|
// this.updateSpawnFlags();
|
||||||
worldserver.setSpawnFlags(this.getSpawnMonsters(), this.getSpawnAnimals());
|
worldserver.setSpawnFlags(this.getSpawnMonsters(), this.getSpawnAnimals());
|
||||||
|
@@ -16,7 +16,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <artifactId>spigot</artifactId>
|
- <artifactId>spigot</artifactId>
|
||||||
+ <artifactId>paper</artifactId>
|
+ <artifactId>paper</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.16.4-R0.1-SNAPSHOT</version>
|
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||||
- <name>Spigot</name>
|
- <name>Spigot</name>
|
||||||
- <url>https://www.spigotmc.org/</url>
|
- <url>https://www.spigotmc.org/</url>
|
||||||
+ <name>Paper</name>
|
+ <name>Paper</name>
|
||||||
@@ -27,7 +27,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ <!-- <skipTests>true</skipTests> Paper - This [was] not going to end well -->
|
+ <!-- <skipTests>true</skipTests> Paper - This [was] not going to end well -->
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<api.version>unknown</api.version>
|
<api.version>unknown</api.version>
|
||||||
<minecraft.version>1.16.4</minecraft.version>
|
<bt.name>git</bt.name>
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
<version>${minecraft.version}-SNAPSHOT</version>
|
<version>${minecraft.version}-SNAPSHOT</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
<version>8.0.1</version>
|
<version>9.0</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
+ <dependency>
|
+ <dependency>
|
||||||
@@ -101,7 +101,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
<execution>
|
<execution>
|
||||||
- <id>ex-spigot</id>
|
- <id>ex-spigot</id>
|
||||||
- <configuration>
|
- <configuration>
|
||||||
- <format>git-Spigot-%s</format>
|
- <format>${bt.name}-Spigot-%s</format>
|
||||||
- <scmDirectory>../</scmDirectory>
|
- <scmDirectory>../</scmDirectory>
|
||||||
- <descriptionProperty>spigot.desc</descriptionProperty>
|
- <descriptionProperty>spigot.desc</descriptionProperty>
|
||||||
- </configuration>
|
- </configuration>
|
||||||
@@ -153,7 +153,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
<createSourcesJar>${shadeSourcesJar}</createSourcesJar>
|
<createSourcesJar>${shadeSourcesJar}</createSourcesJar>
|
||||||
<filters>
|
<filters>
|
||||||
<filter>
|
<filter>
|
||||||
@@ -0,0 +0,0 @@
|
- <artifact>org.spigotmc:minecraft-server</artifact>
|
||||||
|
+ <artifact>io.papermc:minecraft-server</artifact>
|
||||||
|
<excludes>
|
||||||
<exclude>com/google/common/**</exclude>
|
<exclude>com/google/common/**</exclude>
|
||||||
<exclude>com/google/gson/**</exclude>
|
<exclude>com/google/gson/**</exclude>
|
||||||
<exclude>com/google/thirdparty/**</exclude>
|
<exclude>com/google/thirdparty/**</exclude>
|
||||||
@@ -202,7 +204,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
@@ -0,0 +0,0 @@ public class Main {
|
@@ -0,0 +0,0 @@ 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 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
|
+ Date buildDate = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").parse(Main.class.getPackage().getImplementationVendor()); // Paper
|
||||||
|
|
||||||
|
@@ -325,7 +325,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ System.setProperty(TerminalConsoleAppender.JLINE_OVERRIDE_PROPERTY, "false"); // Paper
|
+ 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) {
|
||||||
@@ -0,0 +0,0 @@ public class Main {
|
@@ -0,0 +0,0 @@ public class Main {
|
||||||
System.out.println("Unable to read system info");
|
System.out.println("Unable to read system info");
|
||||||
}
|
}
|
||||||
|
@@ -9,8 +9,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
--- a/pom.xml
|
--- a/pom.xml
|
||||||
+++ b/pom.xml
|
+++ b/pom.xml
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
<version>2.8.1</version>
|
</exclusion>
|
||||||
<scope>compile</scope>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
+ <!-- Paper - Async loggers -->
|
+ <!-- Paper - Async loggers -->
|
||||||
+ <dependency>
|
+ <dependency>
|
||||||
|
Submodule work/BuildData updated: 501ea06074...656df5e622
Submodule work/Bukkit updated: 0958895aef...85b16b8a5f
Submodule work/CraftBukkit updated: 7a6c3c9aa6...f3f30947e0
Submodule work/Spigot updated: a93cbb1e98...018b9a0d5a
Reference in New Issue
Block a user