Commit Graph

7309 Commits

Author SHA1 Message Date
Bjarne Koll ce991b96eb Fully deserialise persistent anger post async load (#8560)
The modified patch prevents entity loading off the main thread when
entities are initially loaded.

However, the initial loading of an entity is not the only time the
Entity#readAdditionalSaveData method is called. Commands like /data also
invoke the method (through Entity#load) to update an entities data
without completely re-creating it.

This however breaks with the current patch, as the patch moves parts of
the entity lookup for persistent anger deserialisation into the first
tick of an entity (which obviously is only called once and hence not
re-run when an already ticking entity is modified as laid out above).

This change actively runs the now split logic for deserialisation again
if the entity has already ticked its first tick. This way, initial
deserialisation is still split into one off thread and the first tick
parts, but following main thread deserialisations can happen completely
inside Entity#readAdditionalSaveData is called.
2022-12-02 18:09:41 +01:00
Jake Potrebic b9401e6d3c Sync offhand slot in menus (#7341) 2022-12-01 13:01:49 -08:00
Jake Potrebic 7caeec36fc [ci skip] couple more fixes for build pr jar label (#8599) 2022-11-30 12:45:27 -08:00
Jason Penilla 5756691b5a Fix whitespace error in recent patch 2022-11-28 11:10:26 -07:00
Lulu13022002 08bcef4859 Handle legacy quirk in the console formatter (#8434) 2022-11-28 14:41:29 +01:00
Denery 2402c125aa Fix preemptive connection dropping during shutdown process (#8546) 2022-11-27 20:20:31 +03:00
sandtechnology e9b9c0b332 Fix packet duplicating at some points (#8566)
Due to the weakly consistent of ConcurrentLinkedQueue iterator, at some points, packet will be resent twice times or more, causing some weird behaviors (e.g. kicked for illegal movement since the same ClientboundPlayerPositionPacket was sent two times). This changes for the patch add a flag for marking if the packet was consumed to prevent such issue and ensure consistently of the packet queue.
2022-11-28 00:36:35 +08:00
Jason Penilla 59d8df6cba Add /paper dumplisteners tofile and increase detail of command output (#8592) 2022-11-26 10:36:11 -07:00
Ján Villim 25196237b1 Added ability to control player's insomnia and phantoms spawning (#6500) 2022-11-26 17:59:04 +01:00
Owen1212055 91869b8753 Schoolable Fish API (#7089) 2022-11-25 21:21:40 -05:00
SoSeDiK c30dcbbc4c Allow using degrees for ArmorStand rotations (#7847) 2022-11-26 03:42:30 +02:00
Noah van der Aa 0d81f1e394 Friction API (#6611) 2022-11-26 01:23:12 +01:00
Kezz 898dd9224a Add Tick TemporalUnit (#5445) 2022-11-25 21:05:42 +00:00
Jake Potrebic 06be0d0b4d Add displayName methods for advancements (#8584) 2022-11-24 23:05:48 -08:00
Jake Potrebic 26993f7801 ItemStack damage API (#7801) 2022-11-24 22:52:00 -08:00
Jake Potrebic 59db8e8bc9 Fix async entity add due to fungus trees (#7626) 2022-11-24 22:32:29 -08:00
Jake Potrebic 86b0932a3b Fixes potential issues arising from optimizing getPlayerByUUID (#8585) 2022-11-24 22:22:19 -08:00
Amy 9cbb983d0d Fix chest relooting mechanics (#8580) 2022-11-24 23:21:40 +00:00
Jake Potrebic b6c34550ce pr command action fixes (#8591) 2022-11-23 19:14:41 -08:00
Warrior 7f4f5f8f3b Add /paper dumplisteners command (#8507)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Co-authored-by: TwoLeggedCat <80929284+TwoLeggedCat@users.noreply.github.com>
2022-11-23 23:28:38 +01:00
Lulu13022002 3375abab49 More vanilla friendly methods to update trades (#8478) 2022-11-23 22:38:49 +01:00
Jake Potrebic e2df6b2c14 [ci skip] Rework workflows to support optional paperclip build (#8583) 2022-11-23 11:19:31 -08:00
Jake Potrebic 48d31a56e9 Add api to resolve components (#7648) 2022-11-22 20:53:50 -08:00
Shane Freeder 3c0aa837c1 Fix Varint21FrameDecoder cached length buf usage 2022-11-22 17:50:31 +00:00
Lulu13022002 944be7b031 Avoid a cubed max search distance for POIs (#8576)
The max search distance used to get the closest Poi data on X/Z axis is cubed
instead of squared (one time in the parameter and another time in the function)
for almost all search.
Generally this has been hidden by another check that already does a pre
distance check between the poi pos and the source pos for individual
component but the issue still happens for diagonal distance search.
Discovered by Samsuik
2022-11-21 16:02:21 +01:00
Jakub Žáček b36d2af7d5 Add Player Warden Warning API (#8470) 2022-11-20 19:53:58 +01:00
Jason Penilla b46e2030d6 [ci skip] Add check for git repo (#8578) 2022-11-20 11:26:20 -07:00
Jake Potrebic b121c04895 Moving ATs from the at file to individual patches (#8573) 2022-11-19 15:53:20 -08:00
Noah van der Aa 14d69488ad Strip coordinates from lodestone compasses (#8561) 2022-11-19 22:41:09 +01:00
Owen1212055 0bb4b6ead5 Add more collision code skipping logic (#7581) 2022-11-19 16:14:19 -05:00
Fruxz 3ef301c4f5 [ci skip] Add TheFruxz to the license MIT list (#8575) 2022-11-19 21:20:21 +01:00
Lulu13022002 f07cda9bb9 Sync chunk load command improvements (#8554) 2022-11-19 20:10:13 +01:00
William Blake Galbreath 7ad5dcb810 Fix MC-179072 (#8421) 2022-11-19 12:23:31 -06:00
Fruxz 070b1cc40a [ci skip] Add .fleet/ folder to .gitignore (#8574) 2022-11-19 14:33:03 +01:00
Melncat da7eb6b942 Fix MC-121048 (#8429)
This moves the setHealth call to below the recordDamage call to prevent
recordDamage from clearing the CombatTracker, since recordDamage will
clear the CombatTracker if the entity is dead. This fixes death messages
such as the "doomed to fall" messages.
2022-11-18 20:04:52 -08:00
Lulu13022002 72369d4f40 Reorder bukkit damage source entity for explosion (#8553) 2022-11-19 03:14:52 +01:00
Jake Potrebic a81c97eafe Fix/improve Affects Spawning API (#7329) 2022-11-15 11:15:01 -08:00
Jake Potrebic f93eb6e135 update yarn param mappings (#8563) 2022-11-12 12:57:41 -08:00
braindead 97cb10205d fix MC-252817 (green map markers do not dissappear) (#8545) 2022-11-12 14:16:25 -05:00
Jake Potrebic 1221fdbc95 ensure reset EnderDragon boss event name (#8562) 2022-11-12 10:34:14 -08:00
Owen1212055 af85b6071c Cleanup reputation API + back with an EnumMap instead of array (#8258)
Resolves: #7142
2022-11-12 12:41:22 -05:00
Noah van der Aa da071ba78f Show exception when headless JRE detection is triggered (#8559) 2022-11-12 13:09:54 +01:00
Owen1212055 36d8f327e8 Add PrePlayerAttackEntityEvent (#8369)
Allows you to cancel player event attacking, preventing things like attack sounds from being played.
2022-11-09 22:05:58 -05:00
Jake Potrebic ac7f94e4cf Updated Upstream (CraftBukkit) (#8548) 2022-11-09 16:05:46 -08:00
Shane Freeder 435cc8ebd8 Cleanup misc import from last commit 2022-11-06 22:46:23 +00:00
Shane Freeder f5e9a14a25 Prevent compass from loading chunks 2022-11-06 22:37:34 +00:00
Owen1212055 0ea0d39edf Properly resend entities (#7041) 2022-11-05 14:50:16 -04:00
Jason Penilla d8be0e795b Update Commodore modifications (#8542)
* Handle ldc insn for getOriginalOrRewrite in Commodore

* Remove fastutil rewrite

It's no longer relocated upstream
2022-11-04 22:16:57 -07:00
Jake Potrebic 2f0e0c5f2b Fix Advancement#getDisplay() api break (#8541) 2022-11-04 15:59:15 -07:00
Astro Angelfish bf532ab0fb [ci-skip] Rename Paper stop tp Paper end. (#8539) 2022-11-05 00:08:01 +08:00