mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Updated Upstream (Paper & Tuinity)
Upstream has released updates that appear to apply and compile correctly Paper Changes: 33d4f608b fix stupid legacy chat garbage a1eebfea9 fix #5212 and #5213 Tuinity Changes: 2f298d30e Fix getEntities for ender dragon parts
This commit is contained in:
@@ -7537,10 +7537,10 @@ index 0000000000000000000000000000000000000000..002abb3cbf0f742e685f2f043d2600de
|
||||
+}
|
||||
diff --git a/src/main/java/com/tuinity/tuinity/world/ChunkEntitySlices.java b/src/main/java/com/tuinity/tuinity/world/ChunkEntitySlices.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..9cc14620d26d63a9e8fec7735625b22411b43e98
|
||||
index 0000000000000000000000000000000000000000..7aca38ebeb21af1a952e72c7f3906ff4970aca0e
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/tuinity/tuinity/world/ChunkEntitySlices.java
|
||||
@@ -0,0 +1,401 @@
|
||||
@@ -0,0 +1,399 @@
|
||||
+package com.tuinity.tuinity.world;
|
||||
+
|
||||
+import it.unimi.dsi.fastutil.objects.Reference2ObjectMap;
|
||||
@@ -7877,11 +7877,9 @@ index 0000000000000000000000000000000000000000..9cc14620d26d63a9e8fec7735625b224
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ if (predicate != null && !predicate.test(entity)) {
|
||||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ into.add(entity);
|
||||
+ if (predicate == null || predicate.test(entity)) {
|
||||
+ into.add(entity);
|
||||
+ } // else: continue to test the ender dragon parts
|
||||
+
|
||||
+ if (entity instanceof EntityEnderDragon) {
|
||||
+ for (final EntityComplexPart part : ((EntityEnderDragon)entity).children) {
|
||||
@@ -13758,7 +13756,7 @@ index 49008cdec739b19409fdaf1b0ed806a6c0e93200..61570ab947b5a153a4c2bcb5a09344f0
|
||||
}
|
||||
// Paper end - optimised tracker
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
index 4e3aa45856015d55bd87d43738533e8d7b01beda..674889b81ec338338d2d21d89bd4613f89a77a9e 100644
|
||||
index c798eb012ab2ac0aab45d3a0f8c61cd1425d3725..8c8359bb696afb579796b23a4d26708986c1b6e2 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
||||
@@ -419,7 +419,9 @@ public class PlayerConnection implements PacketListenerPlayIn {
|
||||
@@ -14124,7 +14122,7 @@ index 114e986e5132e5e4bb42d0f08a067429bce53ba6..05656ea8448aa569e8dd480461e2d5f7
|
||||
this.player.playerConnection.sendPacket(new PacketPlayOutBlockChange(this.world, blockposition)); // CraftBukkit - SPIGOT-5196
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java
|
||||
index e1ab296811081a0d1449d48d16de065c070fde23..e86ab7dd06df2c6973456def1b43dfb5518ec739 100644
|
||||
index 4a20235f34dc272b0a7939b97cf3448919c4f753..60b2e560bbf4c5303e9334a496c6ced0e3c88b19 100644
|
||||
--- a/src/main/java/net/minecraft/server/PlayerList.java
|
||||
+++ b/src/main/java/net/minecraft/server/PlayerList.java
|
||||
@@ -100,6 +100,7 @@ public abstract class PlayerList {
|
||||
@@ -14135,7 +14133,7 @@ index e1ab296811081a0d1449d48d16de065c070fde23..e86ab7dd06df2c6973456def1b43dfb5
|
||||
EntityPlayer prev = pendingPlayers.put(entityplayer.getUniqueID(), entityplayer);// Paper
|
||||
if (prev != null) {
|
||||
disconnectPendingPlayer(prev);
|
||||
@@ -639,7 +640,7 @@ public abstract class PlayerList {
|
||||
@@ -640,7 +641,7 @@ public abstract class PlayerList {
|
||||
SocketAddress socketaddress = loginlistener.networkManager.getSocketAddress();
|
||||
|
||||
EntityPlayer entity = new EntityPlayer(this.server, this.server.getWorldServer(World.OVERWORLD), gameprofile, new PlayerInteractManager(this.server.getWorldServer(World.OVERWORLD)));
|
||||
|
||||
Reference in New Issue
Block a user