mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
1.20.1 (#9333)
This commit is contained in:
parent
aa5e9d1d49
commit
b40a6bb08b
12 changed files with 15 additions and 28 deletions
|
@ -38,7 +38,7 @@ How To (Plugin Developers)
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.papermc.paper</groupId>
|
<groupId>io.papermc.paper</groupId>
|
||||||
<artifactId>paper-api</artifactId>
|
<artifactId>paper-api</artifactId>
|
||||||
<version>1.20-R0.1-SNAPSHOT</version>
|
<version>1.20.1-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
```
|
```
|
||||||
|
@ -54,7 +54,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-api:1.20-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
|
|
@ -61,7 +61,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
paramMappings("net.fabricmc:yarn:1.20+build.1:mergedv2")
|
paramMappings("net.fabricmc:yarn:1.20.1+build.1:mergedv2")
|
||||||
remapper("net.fabricmc:tiny-remapper:0.8.6:fat")
|
remapper("net.fabricmc:tiny-remapper:0.8.6:fat")
|
||||||
decompiler("net.minecraftforge:forgeflower:2.0.627.2")
|
decompiler("net.minecraftforge:forgeflower:2.0.627.2")
|
||||||
spigotDecompiler("io.papermc:patched-spigot-fernflower:0.1+build.6")
|
spigotDecompiler("io.papermc:patched-spigot-fernflower:0.1+build.6")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
group=io.papermc.paper
|
group=io.papermc.paper
|
||||||
version=1.20-R0.1-SNAPSHOT
|
version=1.20.1-R0.1-SNAPSHOT
|
||||||
mcVersion=1.20
|
mcVersion=1.20.1
|
||||||
|
|
||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
|
|
@ -129,7 +129,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
-
|
-
|
||||||
- <groupId>org.spigotmc</groupId>
|
- <groupId>org.spigotmc</groupId>
|
||||||
- <artifactId>spigot-api</artifactId>
|
- <artifactId>spigot-api</artifactId>
|
||||||
- <version>1.20-R0.1-SNAPSHOT</version>
|
- <version>1.20.1-R0.1-SNAPSHOT</version>
|
||||||
- <packaging>jar</packaging>
|
- <packaging>jar</packaging>
|
||||||
-
|
-
|
||||||
- <name>Spigot-API</name>
|
- <name>Spigot-API</name>
|
||||||
|
|
|
@ -5,19 +5,6 @@ Subject: [PATCH] Enderman.teleportRandomly()
|
||||||
|
|
||||||
Ability to trigger the vanilla "teleport randomly" mechanic of an enderman.
|
Ability to trigger the vanilla "teleport randomly" mechanic of an enderman.
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
||||||
--- a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
|
||||||
+++ b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
|
||||||
@@ -0,0 +0,0 @@ public class EnderMan extends Monster implements NeutralMob {
|
|
||||||
super.customServerAiStep();
|
|
||||||
}
|
|
||||||
|
|
||||||
- protected boolean teleport() {
|
|
||||||
+ public boolean teleport() { // Paper - protected->public
|
|
||||||
if (!this.level().isClientSide() && this.isAlive()) {
|
|
||||||
double d0 = this.getX() + (this.random.nextDouble() - 0.5D) * 64.0D;
|
|
||||||
double d1 = this.getY() + (double) (this.random.nextInt(64) - 32);
|
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEnderman.java
|
||||||
|
|
|
@ -269,8 +269,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
this.preparing = false;
|
this.preparing = false;
|
||||||
+ clearPacketQueue(); // Paper
|
+ clearPacketQueue(); // Paper
|
||||||
// Spigot End
|
// Spigot End
|
||||||
if (this.channel.isOpen()) {
|
if (this.channel == null) {
|
||||||
this.channel.close(); // We can't wait as this may be called from an event loop.
|
this.delayedDisconnect = disconnectReason;
|
||||||
@@ -0,0 +0,0 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
@@ -0,0 +0,0 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
public void handleDisconnection() {
|
public void handleDisconnection() {
|
||||||
if (this.channel != null && !this.channel.isOpen()) {
|
if (this.channel != null && !this.channel.isOpen()) {
|
||||||
|
|
|
@ -16723,8 +16723,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
--- a/src/main/java/net/minecraft/network/Connection.java
|
--- a/src/main/java/net/minecraft/network/Connection.java
|
||||||
+++ b/src/main/java/net/minecraft/network/Connection.java
|
+++ b/src/main/java/net/minecraft/network/Connection.java
|
||||||
@@ -0,0 +0,0 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
@@ -0,0 +0,0 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
private int tickCount;
|
@Nullable
|
||||||
private boolean handlingFault;
|
private volatile Component delayedDisconnect;
|
||||||
public String hostname = ""; // CraftBukkit - add field
|
public String hostname = ""; // CraftBukkit - add field
|
||||||
+ // Paper start - add pending task queue
|
+ // Paper start - add pending task queue
|
||||||
+ private final Queue<Runnable> pendingTasks = new java.util.concurrent.ConcurrentLinkedQueue<>();
|
+ private final Queue<Runnable> pendingTasks = new java.util.concurrent.ConcurrentLinkedQueue<>();
|
||||||
|
|
|
@ -182,7 +182,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
- <groupId>org.spigotmc</groupId>
|
- <groupId>org.spigotmc</groupId>
|
||||||
- <artifactId>spigot</artifactId>
|
- <artifactId>spigot</artifactId>
|
||||||
- <packaging>jar</packaging>
|
- <packaging>jar</packaging>
|
||||||
- <version>1.20-R0.1-SNAPSHOT</version>
|
- <version>1.20.1-R0.1-SNAPSHOT</version>
|
||||||
- <name>Spigot</name>
|
- <name>Spigot</name>
|
||||||
- <url>https://www.spigotmc.org/</url>
|
- <url>https://www.spigotmc.org/</url>
|
||||||
-
|
-
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2881c6b6dd146126596342d4025d37a9a84a0b03
|
Subproject commit faff587dcbe915bc565bf01f2d54c6af86039414
|
|
@ -1 +1 @@
|
||||||
Subproject commit 54e8ec7b47ec9a77e05d44d8898a0f247c8db046
|
Subproject commit f1dd65ed73b7cca00527ff81d02ce4d27c456a37
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6962456f98f6e5075c8bf6dff772f3c2464ae60e
|
Subproject commit 9c5d600d1395e9783a8369dc4227be2b05010107
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7e2af8b2d6af54e66edd030abbf12359a8574e05
|
Subproject commit bed8c61f55c6af77ae202c57842de8899bc8a59b
|
Loading…
Reference in a new issue