mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-23 23:39:34 +01:00
apply a couple network patches
This commit is contained in:
parent
f80338725e
commit
1a0280ccc0
666 changed files with 41 additions and 60 deletions
patches/server
0298-Optimize-Network-Manager-and-add-advanced-packet-sup.patch0299-Handle-Oversized-Tile-Entities-in-chunks.patch0300-Call-WhitelistToggleEvent-when-whitelist-is-toggled.patch0301-Entity-getEntitySpawnReason.patch0302-Fire-event-on-GS4-query.patch0303-Implement-PlayerPostRespawnEvent.patch0304-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch0305-Server-Tick-Events.patch0306-PlayerDeathEvent-getItemsToKeep.patch0307-Optimize-Captured-TileEntity-Lookup.patch0308-Add-Heightmap-API.patch0309-Mob-Spawner-API-Enhancements.patch0310-Fix-CB-call-to-changed-postToMainThread-method.patch0311-Fix-sounds-when-item-frames-are-modified-MC-123450.patch0312-Implement-CraftBlockSoundGroup.patch0313-Configurable-Keep-Spawn-Loaded-range-per-world.patch0314-Allow-Saving-of-Oversized-Chunks.patch0315-Expose-the-internal-current-tick.patch0316-Fix-World-isChunkGenerated-calls.patch0317-Show-blockstate-location-if-we-failed-to-read-it.patch0318-Only-count-Natural-Spawned-mobs-towards-natural-spaw.patch0319-Configurable-projectile-relative-velocity.patch0320-offset-item-frame-ticking.patch0321-Fix-MC-158900.patch0322-Prevent-consuming-the-wrong-itemstack.patch0323-Dont-send-unnecessary-sign-update.patch0324-Add-option-to-disable-pillager-patrols.patch0325-Flat-bedrock-generator-settings.patch0326-Prevent-sync-chunk-loads-when-villagers-try-to-find-.patch0327-MC-145656-Fix-Follow-Range-Initial-Target.patch0328-Duplicate-UUID-Resolve-Option.patch0329-PlayerDeathEvent-shouldDropExperience.patch0330-Prevent-bees-loading-chunks-checking-hive-position.patch0331-Don-t-load-Chunks-from-Hoppers-and-other-things.patch0332-Optimise-EntityGetter-getPlayerByUUID.patch0333-Fix-items-not-falling-correctly.patch0334-Optimize-call-to-getFluid-for-explosions.patch0335-Fix-last-firework-in-stack-not-having-effects-when-d.patch0336-Entity-Activation-Range-2.0.patch0337-Implement-alternative-item-despawn-rate.patch0338-Tracking-Range-Improvements.patch0339-Fix-items-vanishing-through-end-portal.patch0340-implement-optional-per-player-mob-spawns.patch0341-Bees-get-gravity-in-void.-Fixes-MC-167279.patch0342-Improve-Block-breakNaturally-API.patch0343-Optimise-getChunkAt-calls-for-loaded-chunks.patch0344-Add-debug-for-sync-chunk-loads.patch0345-Remove-garbage-Java-version-check.patch0346-Add-ThrownEggHatchEvent.patch0347-Entity-Jump-API.patch0348-Add-option-to-nerf-pigmen-from-nether-portals.patch0349-Make-the-GUI-graph-fancier.patch0350-add-hand-to-BlockMultiPlaceEvent.patch0351-Validate-tripwire-hook-placement-before-update.patch0352-Add-option-to-allow-iron-golems-to-spawn-in-air.patch0353-Configurable-chance-of-villager-zombie-infection.patch0354-Optimise-Chunk-getFluid.patch0355-Set-spigots-verbose-world-setting-to-false-by-def.patch0356-Add-tick-times-API-and-mspt-command.patch0357-Expose-MinecraftServer-isRunning.patch0358-Add-Raw-Byte-ItemStack-Serialization.patch0359-Pillager-patrol-spawn-settings-and-per-player-option.patch0360-Remote-Connections-shouldn-t-hold-up-shutdown.patch0361-Do-not-allow-bees-to-load-chunks-for-beehives.patch0362-Prevent-Double-PlayerChunkMap-adds-crashing-server.patch0363-Don-t-tick-dead-players.patch0364-Dead-Player-s-shouldn-t-be-able-to-move.patch0365-Optimize-Collision-to-not-load-chunks.patch0366-Don-t-move-existing-players-to-world-spawn.patch0367-Optimize-GoalSelector-Goal.Flag-Set-operations.patch0368-Improved-Watchdog-Support.patch0369-Optimize-Pathfinding.patch0370-Reduce-Either-Optional-allocation.patch0371-Reduce-memory-footprint-of-NBTTagCompound.patch0372-Prevent-opening-inventories-when-frozen.patch0373-Don-t-run-entity-collision-code-if-not-needed.patch0374-Implement-Player-Client-Options-API.patch0375-Don-t-crash-if-player-is-attempted-to-be-removed-fro.patch0376-Fix-Longstanding-Broken-behavior-of-PlayerJoinEvent.patch0377-Move-player-to-spawn-point-if-spawn-in-unloaded-worl.patch0378-Add-PlayerAttackEntityCooldownResetEvent.patch0379-Don-t-fire-BlockFade-on-worldgen-threads.patch0380-Add-phantom-creative-and-insomniac-controls.patch0381-Fix-numerous-item-duplication-issues-and-teleport-is.patch0382-Villager-Restocks-API.patch0383-Validate-PickItem-Packet-and-kick-for-invalid.patch0384-Expose-game-version.patch0385-Optimize-Voxel-Shape-Merging.patch0386-Set-cap-on-JDK-per-thread-native-byte-buffer-cache.patch0387-misc-debugging-dumps.patch0388-Prevent-teleporting-dead-entities.patch0389-Deobfuscate-stacktraces-in-log-messages-crash-report.patch0390-Implement-Mob-Goal-API.patch0391-Add-villager-reputation-API.patch0392-Option-for-maximum-exp-value-when-merging-orbs.patch0393-ExperienceOrbMergeEvent.patch0394-Fix-PotionEffect-ignores-icon-flag.patch0395-Optimize-brigadier-child-sorting-performance.patch0396-Potential-bed-API.patch0397-Wait-for-Async-Tasks-during-shutdown.patch
|
@ -28,7 +28,7 @@ and then catch exceptions and close if they fire.
|
|||
Part of this commit was authored by: Spottedleaf, sandtechnology
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java
|
||||
index e1eea381a2ebcc32424d31c42a45287d2a1cb16a..ca9a36e357e73b1b518ebb5c937314269655de32 100644
|
||||
index 38b3934b4a81972285c1c2bd0297c4458aa08e41..5308f016baf3001ffd1468633cde446493ca581e 100644
|
||||
--- a/src/main/java/net/minecraft/network/Connection.java
|
||||
+++ b/src/main/java/net/minecraft/network/Connection.java
|
||||
@@ -118,6 +118,10 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
|
@ -271,7 +271,7 @@ index e1eea381a2ebcc32424d31c42a45287d2a1cb16a..ca9a36e357e73b1b518ebb5c93731426
|
|||
// Spigot End
|
||||
if (this.channel.isOpen()) {
|
||||
this.channel.close(); // We can't wait as this may be called from an event loop.
|
||||
@@ -481,7 +622,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
@@ -484,7 +625,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
public void handleDisconnection() {
|
||||
if (this.channel != null && !this.channel.isOpen()) {
|
||||
if (this.disconnectionHandled) {
|
||||
|
@ -280,7 +280,7 @@ index e1eea381a2ebcc32424d31c42a45287d2a1cb16a..ca9a36e357e73b1b518ebb5c93731426
|
|||
} else {
|
||||
this.disconnectionHandled = true;
|
||||
if (this.getDisconnectedReason() != null) {
|
||||
@@ -489,7 +630,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
@@ -492,7 +633,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
} else if (this.getPacketListener() != null) {
|
||||
this.getPacketListener().onDisconnect(Component.translatable("multiplayer.disconnect.generic"));
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ index e1eea381a2ebcc32424d31c42a45287d2a1cb16a..ca9a36e357e73b1b518ebb5c93731426
|
|||
// Paper start - Add PlayerConnectionCloseEvent
|
||||
final PacketListener packetListener = this.getPacketListener();
|
||||
if (packetListener instanceof net.minecraft.server.network.ServerGamePacketListenerImpl) {
|
||||
@@ -529,6 +670,18 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
@@ -532,6 +673,18 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
@Nullable
|
||||
final PacketSendListener listener;
|
||||
|
|
@ -474,7 +474,7 @@ index 52eb3176437113f9a0ff85d10ce5c2415e1b5570..b54ddd0ba0b001fbcb1838a838ca4890
|
|||
}
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java
|
||||
index 38b3934b4a81972285c1c2bd0297c4458aa08e41..077950ba6da2af1afc6edbf4449b37fb0893088a 100644
|
||||
index 5308f016baf3001ffd1468633cde446493ca581e..1b6d090afea5b0a49b601b73cefeedc0b832ba9d 100644
|
||||
--- a/src/main/java/net/minecraft/network/Connection.java
|
||||
+++ b/src/main/java/net/minecraft/network/Connection.java
|
||||
@@ -64,13 +64,13 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
|
@ -494,7 +494,7 @@ index 38b3934b4a81972285c1c2bd0297c4458aa08e41..077950ba6da2af1afc6edbf4449b37fb
|
|||
});
|
||||
private final PacketFlow receiving;
|
||||
private final Queue<Connection.PacketHolder> queue = Queues.newConcurrentLinkedQueue();
|
||||
@@ -194,7 +194,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
@@ -199,7 +199,7 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -540,7 +540,7 @@ index 4a8d4c92ba97d224d8ccd6a9232623ec66ef40a9..e065a559a0ccccf76c27bc4651370164
|
|||
}
|
||||
// Paper end
|
||||
diff --git a/src/main/java/net/minecraft/server/network/ServerConnectionListener.java b/src/main/java/net/minecraft/server/network/ServerConnectionListener.java
|
||||
index 776528e50a5abc0e02d9de99231fb47352aa4f43..4017c15a62ce1048a61f55f46f915fd516496181 100644
|
||||
index fbf375534e2b8bd6ef052c4625764f4f8feb2ed6..bb9e65eee7e0ca0f715cd5791c47579a57b1b577 100644
|
||||
--- a/src/main/java/net/minecraft/server/network/ServerConnectionListener.java
|
||||
+++ b/src/main/java/net/minecraft/server/network/ServerConnectionListener.java
|
||||
@@ -51,10 +51,10 @@ public class ServerConnectionListener {
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue