1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-31 11:49:53 +02:00

add 1 more networking patch and add comments to dropped patches

This commit is contained in:
Jake Potrebic 2023-06-08 10:25:32 -07:00
parent 1a0280ccc0
commit 870dafe358
No known key found for this signature in database
GPG key ID: 27CC63F7CBC866C7
264 changed files with 11 additions and 16 deletions
patches
removed/1.20
server
0704-Optimise-non-flush-packet-sending.patch0705-Optimise-nearby-player-lookups.patch0706-Remove-streams-for-villager-AI.patch0707-Use-Velocity-compression-and-cipher-natives.patch0708-Reduce-worldgen-thread-worker-count-for-low-core-cou.patch0709-Fix-Bukkit-NamespacedKey-shenanigans.patch0710-Fix-merchant-inventory-not-closing-on-entity-removal.patch0711-Check-requirement-before-suggesting-root-nodes.patch0712-Don-t-respond-to-ServerboundCommandSuggestionPacket-.patch0713-Fix-setPatternColor-on-tropical-fish-bucket-meta.patch0714-Ensure-valid-vehicle-status.patch0715-Prevent-softlocked-end-exit-portal-generation.patch0716-Fix-CocaoDecorator-causing-a-crash-when-trying-to-ge.patch0717-Don-t-log-debug-logging-being-disabled.patch0718-fix-various-menus-with-empty-level-accesses.patch0719-Preserve-overstacked-loot.patch0720-Update-head-rotation-in-missing-places.patch0721-prevent-unintended-light-block-manipulation.patch0722-Fix-CraftCriteria-defaults-map.patch0723-Fix-upstreams-block-state-factories.patch0724-Add-config-option-for-logging-player-ip-addresses.patch0725-Configurable-feature-seeds.patch0726-VanillaCommandWrapper-didnt-account-for-entity-sende.patch0727-Add-root-admin-user-detection.patch0728-Always-allow-item-changing-in-Fireball.patch0729-don-t-attempt-to-teleport-dead-entities.patch0730-Prevent-excessive-velocity-through-repeated-crits.patch0731-Remove-client-side-code-using-deprecated-for-removal.patch0732-Fix-removing-recipes-from-RecipeIterator.patch0733-Prevent-sending-oversized-item-data-in-equipment-and.patch0734-Hide-unnecessary-itemmeta-from-clients.patch0735-Fix-Spigot-growth-modifiers.patch0736-Prevent-ContainerOpenersCounter-openCount-from-going.patch0737-Add-PlayerItemFrameChangeEvent.patch0738-Add-player-health-update-API.patch0739-Optimize-HashMapPalette.patch0740-Allow-delegation-to-vanilla-chunk-gen.patch0741-Highly-optimise-single-and-multi-AABB-VoxelShapes-an.patch0742-Optimise-collision-checking-in-player-move-packet-ha.patch0743-Fix-ChunkSnapshot-isSectionEmpty-int-and-optimize-Pa.patch0744-Add-more-Campfire-API.patch0745-Only-write-chunk-data-to-disk-if-it-serializes-witho.patch0746-Fix-tripwire-state-inconsistency.patch0747-Forward-CraftEntity-in-teleport-command.patch0748-Improve-scoreboard-entries.patch0749-Entity-powdered-snow-API.patch0750-Add-API-for-item-entity-health.patch0751-Fix-entity-type-tags-suggestions-in-selectors.patch0752-Configurable-max-block-light-for-monster-spawning.patch0753-Fix-sticky-pistons-and-BlockPistonRetractEvent.patch0754-Load-effect-amplifiers-greater-than-127-correctly.patch0755-Expose-isFuel-and-canSmelt-methods-to-FurnaceInvento.patch0756-Fix-bees-aging-inside-hives.patch0757-Bucketable-API.patch0758-Validate-usernames.patch0759-Make-water-animal-spawn-height-configurable.patch0760-Expose-vanilla-BiomeProvider-from-WorldInfo.patch0761-Add-config-option-for-worlds-affected-by-time-cmd.patch0762-Add-new-overload-to-PersistentDataContainer-has.patch0763-Multiple-Entries-with-Scoreboards.patch0764-Reset-placed-block-on-exception.patch0765-Add-configurable-height-for-slime-spawn.patch0766-Added-getHostname-to-AsyncPlayerPreLoginEvent.patch0767-Fix-xp-reward-for-baby-zombies.patch0768-Kick-on-main-for-illegal-chat.patch0769-Multi-Block-Change-API-Implementation.patch0770-Fix-NotePlayEvent.patch0771-Freeze-Tick-Lock-API.patch0772-Dolphin-API.patch0773-More-PotionEffectType-API.patch0774-Use-a-CHM-for-StructureTemplate.Pallete-cache.patch0775-API-for-creating-command-sender-which-forwards-feedb.patch0776-Add-missing-structure-set-seed-configs.patch0777-Implement-regenerateChunk.patch0778-Fix-cancelled-powdered-snow-bucket-placement.patch0779-Add-missing-Validate-calls-to-CraftServer-getSpawnLi.patch0780-Add-GameEvent-tags.patch0781-Execute-chunk-tasks-fairly-for-worlds-while-waiting-.patch0782-Furnace-RecipesUsed-API.patch0783-Configurable-sculk-sensor-listener-range.patch0784-Add-missing-block-data-mins-and-maxes.patch0785-Option-to-have-default-CustomSpawners-in-custom-worl.patch0786-Put-world-into-worldlist-before-initing-the-world.patch0787-Fix-Entity-Position-Desync.patch0788-Custom-Potion-Mixes.patch0789-Force-close-world-loading-screen.patch0790-Fix-falling-block-spawn-methods.patch0791-Expose-furnace-minecart-push-values.patch0792-Fix-cancelling-ProjectileHitEvent-for-piercing-arrow.patch0793-More-Projectile-API.patch0794-Fix-swamp-hut-cat-generation-deadlock.patch0795-Don-t-allow-vehicle-movement-from-players-while-tele.patch0796-Implement-getComputedBiome-API.patch0797-Make-some-itemstacks-nonnull.patch0798-Implement-enchantWithLevels-API.patch0799-Fix-saving-in-unloadWorld.patch0800-Buffer-OOB-setBlock-calls.patch

View file

@ -15,6 +15,8 @@ Original patch by: MeFisto94 <MeFisto94@users.noreply.github.com>
Co-authored-by: =?UTF-8?q?Dani=C3=ABl=20Goossens?= <daniel@goossens.ch>
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
Fixed in 1.20 with new light engine
diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java
index 95c50a36dc1e03ae8ab8ca89a96d1ea56da8d94c..fbe209a66c77c47935ad026dd3e45e682af91fd8 100644
--- a/src/main/java/net/minecraft/server/level/ChunkMap.java

View file

@ -4,7 +4,7 @@ Date: Fri, 16 Sep 2022 17:44:34 +0200
Subject: [PATCH] Fix: EndDragonFight killed statuses should be false for newly
created worlds
Do we need this
This was fixed in 1.20-pre1
diff --git a/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java b/src/main/java/net/minecraft/world/level/dimension/end/EndDragonFight.java
index 230de1c71b0a6d6370df2fedb337cf0e332a7596..8cf4ae35eb66e69de32295d707db6845b4b02962 100644

View file

@ -7,6 +7,8 @@ The client does not send the packet needed to received this information until a
despite a player having disabled listing, they are able to be seen for a brief moment. This causes the player to be listed as an Anonymous
Player until the actual configuration value is received from the client.
Fixed by mojang in 1.20
diff --git a/src/main/java/net/minecraft/server/level/ServerPlayer.java b/src/main/java/net/minecraft/server/level/ServerPlayer.java
index c4a070d445a0d834152eb53864eb08f4f90947ca..f4526885a57b804a754ab34675649a5466db300d 100644
--- a/src/main/java/net/minecraft/server/level/ServerPlayer.java

View file

@ -20,19 +20,10 @@ up on this optimisation before he came along.
Locally this patch drops the entity tracker tick by a full 1.5x.
diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java
index ed27a0eb28b39f045064432107a86efc3b5927cd..9b46c1068b7b52f735423fc255ae6e949dd5cb0b 100644
index 1690626b8a62e078ce23e725c0384983af9c9e23..bff8267b72f5e4a0530055ee58add657fa553dcd 100644
--- a/src/main/java/net/minecraft/network/Connection.java
+++ b/src/main/java/net/minecraft/network/Connection.java
@@ -48,6 +48,8 @@ import org.slf4j.Logger;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
+
+import io.netty.util.concurrent.AbstractEventExecutor; // Paper
public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
private static final float AVERAGE_PACKETS_SMOOTHING = 0.75F;
@@ -428,9 +430,19 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
@@ -428,9 +428,19 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
if (this.channel.eventLoop().inEventLoop()) {
this.doSendPacket(packet, callbacks, enumprotocol, enumprotocol1, flush); // Paper
} else {
@ -40,7 +31,7 @@ index ed27a0eb28b39f045064432107a86efc3b5927cd..9b46c1068b7b52f735423fc255ae6e94
+ // note: since the type is not dynamic here, we need to actually copy the old executor code
+ // into two branches. On conflict, just re-copy - no changes were made inside the executor code.
+ if (!flush) {
+ AbstractEventExecutor.LazyRunnable run = () -> {
+ io.netty.util.concurrent.AbstractEventExecutor.LazyRunnable run = () -> {
+ this.doSendPacket(packet, callbacks, enumprotocol, enumprotocol1, flush); // Paper - add flush parameter
+ };
+ this.channel.eventLoop().execute(run);

View file

@ -268,10 +268,10 @@ index 792883afe53d2b7989c25a81c2f9a639d5e21d20..c04379ca8a4db0f4de46ad2b3b338431
return this.threshold;
}
diff --git a/src/main/java/net/minecraft/network/Connection.java b/src/main/java/net/minecraft/network/Connection.java
index 1690626b8a62e078ce23e725c0384983af9c9e23..4682fd171b323c7c1294c5ce8e5dd350e9cfd93b 100644
index bff8267b72f5e4a0530055ee58add657fa553dcd..c45c1d519aba414557bf1a4c9260f928bd8d9b14 100644
--- a/src/main/java/net/minecraft/network/Connection.java
+++ b/src/main/java/net/minecraft/network/Connection.java
@@ -698,11 +698,28 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
@@ -708,11 +708,28 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
return networkmanager;
}
@ -304,7 +304,7 @@ index 1690626b8a62e078ce23e725c0384983af9c9e23..4682fd171b323c7c1294c5ce8e5dd350
public boolean isEncrypted() {
return this.encrypted;
@@ -734,16 +751,17 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
@@ -744,16 +761,17 @@ public class Connection extends SimpleChannelInboundHandler<Packet<?>> {
public void setupCompression(int compressionThreshold, boolean rejectsBadPackets) {
if (compressionThreshold >= 0) {

Some files were not shown because too many files have changed in this diff Show more