From 3fed7289ede921a499e314b567977b73d3446d71 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 7 Jun 2023 21:54:11 +0200 Subject: [PATCH] More more more more more work --- ...e-Explicit-Network-Manager-Flushing.patch} | 6 +-- ...t-extended-PaperServerListPingEvent.patch} | 4 +- ...-PlayerProfile-in-AsyncPreLoginEven.patch} | 0 .../0180-Player.setPlayerProfile-API.patch} | 22 ++++---- .../0181-getPlayerUniqueId-API.patch} | 4 +- .../0182-Improved-Async-Task-Scheduler.patch} | 0 ...e-legacy-ping-handler-more-reliable.patch} | 0 ...erverListPingEvent-for-legacy-pings.patch} | 0 ...5-Flag-to-disable-the-channel-limit.patch} | 4 +- ...-Add-openSign-method-to-HumanEntity.patch} | 11 ++-- ...rable-sprint-interruption-on-attack.patch} | 4 +- .../0188-EndermanEscapeEvent.patch} | 8 +-- .../0189-Enderman.teleportRandomly.patch} | 4 +- ...190-Block-Enderpearl-Travel-Exploit.patch} | 12 ++--- ...d.spawnParticle-API-and-add-Builder.patch} | 8 +-- ...ted-Ice-from-loading-holding-chunks.patch} | 0 .../0193-EndermanAttackPlayerEvent.patch} | 4 +- .../0194-WitchConsumePotionEvent.patch} | 2 +- .../0195-WitchThrowPotionEvent.patch} | 4 +- ...tem-entities-with-World.spawnEntity.patch} | 2 +- .../0197-WitchReadyPotionEvent.patch} | 2 +- ...198-ItemStack-getMaxItemUseDuration.patch} | 2 +- ...ement-EntityTeleportEndGatewayEvent.patch} | 2 +- ...d-flag-on-cancel-of-Explosion-Event.patch} | 2 +- .../0201-Fix-CraftEntity-hashCode.patch} | 2 +- ...e-Alternative-LootPool-Luck-Formula.patch} | 0 ...ls-when-failing-to-save-player-data.patch} | 2 +- ...-shield-blocking-delay-configurable.patch} | 4 +- .../0205-Improve-EntityShootBowEvent.patch} | 14 +++--- .../0206-PlayerReadyArrowEvent.patch} | 4 +- ...nockbackByEntityEvent-and-EntityPus.patch} | 40 +++++++-------- .../0208-Expand-Explosions-API.patch} | 4 +- ...vingEntity-Hand-Raised-Item-Use-API.patch} | 0 .../0210-RangedEntity-API.patch} | 2 +- ...o-disable-ender-dragon-legacy-check.patch} | 12 ++--- ...-Implement-World.getEntity-UUID-API.patch} | 4 +- ...0213-InventoryCloseEvent-Reason-API.patch} | 50 +++++++++---------- .../0214-Vex-get-setSummoner-API.patch} | 0 ...ventory-when-cancelling-PlayerInter.patch} | 4 +- 39 files changed, 124 insertions(+), 125 deletions(-) rename patches/{unapplied/server/0181-Disable-Explicit-Network-Manager-Flushing.patch => server/0177-Disable-Explicit-Network-Manager-Flushing.patch} (85%) rename patches/{unapplied/server/0182-Implement-extended-PaperServerListPingEvent.patch => server/0178-Implement-extended-PaperServerListPingEvent.patch} (98%) rename patches/{unapplied/server/0183-Ability-to-change-PlayerProfile-in-AsyncPreLoginEven.patch => server/0179-Ability-to-change-PlayerProfile-in-AsyncPreLoginEven.patch} (100%) rename patches/{unapplied/server/0184-Player.setPlayerProfile-API.patch => server/0180-Player.setPlayerProfile-API.patch} (93%) rename patches/{unapplied/server/0185-getPlayerUniqueId-API.patch => server/0181-getPlayerUniqueId-API.patch} (90%) rename patches/{unapplied/server/0186-Improved-Async-Task-Scheduler.patch => server/0182-Improved-Async-Task-Scheduler.patch} (100%) rename patches/{unapplied/server/0187-Make-legacy-ping-handler-more-reliable.patch => server/0183-Make-legacy-ping-handler-more-reliable.patch} (100%) rename patches/{unapplied/server/0188-Call-PaperServerListPingEvent-for-legacy-pings.patch => server/0184-Call-PaperServerListPingEvent-for-legacy-pings.patch} (100%) rename patches/{unapplied/server/0189-Flag-to-disable-the-channel-limit.patch => server/0185-Flag-to-disable-the-channel-limit.patch} (91%) rename patches/{unapplied/server/0190-Add-openSign-method-to-HumanEntity.patch => server/0186-Add-openSign-method-to-HumanEntity.patch} (82%) rename patches/{unapplied/server/0191-Configurable-sprint-interruption-on-attack.patch => server/0187-Configurable-sprint-interruption-on-attack.patch} (87%) rename patches/{unapplied/server/0193-EndermanEscapeEvent.patch => server/0188-EndermanEscapeEvent.patch} (83%) rename patches/{unapplied/server/0194-Enderman.teleportRandomly.patch => server/0189-Enderman.teleportRandomly.patch} (91%) rename patches/{unapplied/server/0195-Block-Enderpearl-Travel-Exploit.patch => server/0190-Block-Enderpearl-Travel-Exploit.patch} (75%) rename patches/{unapplied/server/0196-Expand-World.spawnParticle-API-and-add-Builder.patch => server/0191-Expand-World.spawnParticle-API-and-add-Builder.patch} (92%) rename patches/{unapplied/server/0197-Prevent-Frosted-Ice-from-loading-holding-chunks.patch => server/0192-Prevent-Frosted-Ice-from-loading-holding-chunks.patch} (100%) rename patches/{unapplied/server/0198-EndermanAttackPlayerEvent.patch => server/0193-EndermanAttackPlayerEvent.patch} (90%) rename patches/{unapplied/server/0199-WitchConsumePotionEvent.patch => server/0194-WitchConsumePotionEvent.patch} (93%) rename patches/{unapplied/server/0200-WitchThrowPotionEvent.patch => server/0195-WitchThrowPotionEvent.patch} (93%) rename patches/{unapplied/server/0201-Allow-spawning-Item-entities-with-World.spawnEntity.patch => server/0196-Allow-spawning-Item-entities-with-World.spawnEntity.patch} (93%) rename patches/{unapplied/server/0202-WitchReadyPotionEvent.patch => server/0197-WitchReadyPotionEvent.patch} (93%) rename patches/{unapplied/server/0203-ItemStack-getMaxItemUseDuration.patch => server/0198-ItemStack-getMaxItemUseDuration.patch} (91%) rename patches/{unapplied/server/0204-Implement-EntityTeleportEndGatewayEvent.patch => server/0199-Implement-EntityTeleportEndGatewayEvent.patch} (95%) rename patches/{unapplied/server/0205-Unset-Ignited-flag-on-cancel-of-Explosion-Event.patch => server/0200-Unset-Ignited-flag-on-cancel-of-Explosion-Event.patch} (89%) rename patches/{unapplied/server/0206-Fix-CraftEntity-hashCode.patch => server/0201-Fix-CraftEntity-hashCode.patch} (94%) rename patches/{unapplied/server/0207-Configurable-Alternative-LootPool-Luck-Formula.patch => server/0202-Configurable-Alternative-LootPool-Luck-Formula.patch} (100%) rename patches/{unapplied/server/0208-Print-Error-details-when-failing-to-save-player-data.patch => server/0203-Print-Error-details-when-failing-to-save-player-data.patch} (90%) rename patches/{unapplied/server/0209-Make-shield-blocking-delay-configurable.patch => server/0204-Make-shield-blocking-delay-configurable.patch} (93%) rename patches/{unapplied/server/0210-Improve-EntityShootBowEvent.patch => server/0205-Improve-EntityShootBowEvent.patch} (85%) rename patches/{unapplied/server/0211-PlayerReadyArrowEvent.patch => server/0206-PlayerReadyArrowEvent.patch} (93%) rename patches/{unapplied/server/0212-Implement-EntityKnockbackByEntityEvent-and-EntityPus.patch => server/0207-Implement-EntityKnockbackByEntityEvent-and-EntityPus.patch} (89%) rename patches/{unapplied/server/0213-Expand-Explosions-API.patch => server/0208-Expand-Explosions-API.patch} (90%) rename patches/{unapplied/server/0214-LivingEntity-Hand-Raised-Item-Use-API.patch => server/0209-LivingEntity-Hand-Raised-Item-Use-API.patch} (100%) rename patches/{unapplied/server/0215-RangedEntity-API.patch => server/0210-RangedEntity-API.patch} (99%) rename patches/{unapplied/server/0216-Add-config-to-disable-ender-dragon-legacy-check.patch => server/0211-Add-config-to-disable-ender-dragon-legacy-check.patch} (67%) rename patches/{unapplied/server/0217-Implement-World.getEntity-UUID-API.patch => server/0212-Implement-World.getEntity-UUID-API.patch} (85%) rename patches/{unapplied/server/0218-InventoryCloseEvent-Reason-API.patch => server/0213-InventoryCloseEvent-Reason-API.patch} (85%) rename patches/{unapplied/server/0219-Vex-get-setSummoner-API.patch => server/0214-Vex-get-setSummoner-API.patch} (100%) rename patches/{unapplied/server/0220-Refresh-player-inventory-when-cancelling-PlayerInter.patch => server/0215-Refresh-player-inventory-when-cancelling-PlayerInter.patch} (90%) diff --git a/patches/unapplied/server/0181-Disable-Explicit-Network-Manager-Flushing.patch b/patches/server/0177-Disable-Explicit-Network-Manager-Flushing.patch similarity index 85% rename from patches/unapplied/server/0181-Disable-Explicit-Network-Manager-Flushing.patch rename to patches/server/0177-Disable-Explicit-Network-Manager-Flushing.patch index 7463a5b3a0..ba688f6ff8 100644 --- a/patches/unapplied/server/0181-Disable-Explicit-Network-Manager-Flushing.patch +++ b/patches/server/0177-Disable-Explicit-Network-Manager-Flushing.patch @@ -12,10 +12,10 @@ flushing on the netty event loop, so it won't do the flush on the main thread. Renable flushing by passing -Dpaper.explicit-flush=true diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java -index 07b2d28c5cba543b104ade6a180b0940a794e08c..b1a9c75081f7e61212ea9395b35375e067fd7fc6 100644 +index ff1069f57227783f440e4ec9deb58fc709dfd0e7..0a4a875cd3d7f8f864d583d94b6f3869139db48e 100644 --- a/src/main/java/net/minecraft/network/Connection.java +++ b/src/main/java/net/minecraft/network/Connection.java -@@ -117,6 +117,7 @@ public class Connection extends SimpleChannelInboundHandler> { +@@ -95,6 +95,7 @@ public class Connection extends SimpleChannelInboundHandler> { // Paper start - NetworkClient implementation public int protocolVersion; public java.net.InetSocketAddress virtualHost; @@ -23,7 +23,7 @@ index 07b2d28c5cba543b104ade6a180b0940a794e08c..b1a9c75081f7e61212ea9395b35375e0 // Paper end public Connection(PacketFlow side) { -@@ -317,7 +318,7 @@ public class Connection extends SimpleChannelInboundHandler> { +@@ -288,7 +289,7 @@ public class Connection extends SimpleChannelInboundHandler> { } if (this.channel != null) { diff --git a/patches/unapplied/server/0182-Implement-extended-PaperServerListPingEvent.patch b/patches/server/0178-Implement-extended-PaperServerListPingEvent.patch similarity index 98% rename from patches/unapplied/server/0182-Implement-extended-PaperServerListPingEvent.patch rename to patches/server/0178-Implement-extended-PaperServerListPingEvent.patch index 0c804da246..0a100f499d 100644 --- a/patches/unapplied/server/0182-Implement-extended-PaperServerListPingEvent.patch +++ b/patches/server/0178-Implement-extended-PaperServerListPingEvent.patch @@ -181,7 +181,7 @@ index 0000000000000000000000000000000000000000..6b0bdc266109cdfb874f08bf74323603 + +} diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java -index 4e263a0ca438ffd1253cda577689a1b6d2d55992..274f3a213e60c9b67dbc43c8b53efb676b8bd41e 100644 +index 9fad7c117033694bc5850b9f9585e439c44ef0dd..646d6d3833ab7e40165502f29b0522562d6b8a71 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -3,6 +3,9 @@ package net.minecraft.server; @@ -194,7 +194,7 @@ index 4e263a0ca438ffd1253cda577689a1b6d2d55992..274f3a213e60c9b67dbc43c8b53efb67 import com.google.common.collect.Lists; import com.google.common.collect.Maps; import com.google.common.collect.Sets; -@@ -1349,7 +1352,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop