Commit Graph

1364 Commits

Author SHA1 Message Date
Jason Penilla 29c8822d90 Remove no longer needed MC-210802 fix (#13059)
Build Paper / build (push) Failing after 1s
Build Paper / Event File (push) Failing after 1s
2025-09-06 14:38:29 -07:00
Lulu13022002 19156cdd3b Give the right amount of experience after mending (#13047) 2025-09-06 13:49:56 -07:00
Spottedleaf 9aaaadffaa Backport DFU changes from snapshots
When converting to components:
 - Remove enchantments with levels <= 0
 - Remove the item name if it is not valid JSON
 - Remove lore entries that are not valid JSON
2025-09-03 14:59:39 -07:00
Jason Penilla 65641d1006 Only log name instead of full profile for configuration phase disconnects (#13038) 2025-08-29 13:32:10 -07:00
Jason Penilla 704107c3dd Resend frozen ticks when cancelling EntityInsideBlockEvent for powder snow fixes #13033 (#13035) 2025-08-28 18:11:29 -07:00
Jason Penilla 9d1d0ef3f3 Add and call RegionizedServerInitEvent from Folia (#13034) 2025-08-28 18:09:09 -07:00
Shane Freeder 51706e5ac1 Fixed DyeItem sheep dye hunk 2025-08-25 02:49:26 +01:00
Aeltumn 614e9acfca Improve APIs around riptide tridents (#12996)
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
2025-08-23 21:12:30 +00:00
Strokkur24 5622c9dd73 Expose attribute sentiment (#12974)
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
2025-08-23 17:15:16 +00:00
Pedro a9e7674933 Support for showNotification in PlayerRecipeDiscoverEvent (#12992) 2025-08-23 17:53:46 +01:00
MC_XiaoHei ea014f7a77 feat: add stuckEntityPoiRetryDelay config (#12949)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2025-08-23 09:39:19 -07:00
Warrior 79cf1353b9 Ignore HopperInventorySearchEvent when it has no listeners (#13009) 2025-08-23 16:25:40 +00:00
Moulberry 38fe16b5f2 Fix missing reason in disconnectAsync (#13001) 2025-08-21 22:13:31 +01:00
Esophose 616a8795ea Add LootTable to BlockDispenseLootEvent (#12917) 2025-08-17 15:53:00 +01:00
Strokkur24 47f983f430 Add allow-remote-ender-dragon-respawning setting (#12602) 2025-08-17 13:49:30 +02:00
Emil 651fa124c5 Fix cancelled EnderDragonShootFireballEvent playing sound (#12977) 2025-08-15 21:55:31 +02:00
swim5678 f0c1f856f2 Fix Phantom entity Spawn reason (#12980) 2025-08-14 17:46:02 +01:00
Jason Penilla 86b716bc5b Fix BlockFadeEvent not being called when fire extinguishes in rain (#12972) 2025-08-13 08:29:06 -07:00
Alejandro Nieto 4fe66e5800 Fix lead_break sound playing after cancelling EntityUnleashEvent (#12944) 2025-08-12 11:01:39 +02:00
Alejandro Nieto 3d1425f086 Fix phantoms failing to target players near non-insomniacs (#12953) 2025-08-11 22:13:29 +02:00
Lumine1909 9694886daa Fix endermite spawn position
The player teleport has been moved up in ThrownEnderpearl to prevent
endermite spawning in case of a cancelled teleport. This however placed
the player at the teleport destination prior to the endermite spawn
logic, creating the entity at the wrong location.

The commit stores the location of the player pre teleportation and uses
said location for spawning the endermite instead.

Co-authored-by: Helvetica Volubi <suisuroru@blue-millennium.fun>
Reviewed-in: https://github.com/PaperMC/Paper/pull/12912
2025-08-07 12:36:47 +02:00
Pedro 6d0833ece5 Use target level for waypoint modify command (#12933) 2025-08-07 12:36:23 +02:00
Emily 846c64f4d1 Allow for sending plugin messages during configuration stage (#12915) 2025-08-04 15:06:52 +02:00
Bjarne Koll e9380882f2 Lazy evaluate ender chest inventory holder 2025-08-04 14:45:52 +02:00
Warrior c60f4436f0 Restore players being the inventory holder of an enderchest (#12923) 2025-08-04 13:53:50 +02:00
Gero bf465e0029 Cancel hit for all vanished entities, not only players (#12906) 2025-08-03 17:17:41 +02:00
TonytheMacaroni a4da45e3b2 Fix typo in give command (#12905) 2025-07-30 08:52:40 +01:00
Noah van der Aa dbc367ba2d Keep non-container slots synced when in container view (#12881) 2025-07-26 21:46:30 +00:00
David a57636189a Add WorldDifficultyChangeEvent (#12471) 2025-07-26 23:38:16 +02:00
David Mayr 57c13137e4 Allow to change despawnInPeaceful (#12880) 2025-07-26 14:13:42 -07:00
Alejandro Nieto 9ccc51df43 Fix legacy pearls forgetting owner on disconnect (#12884) 2025-07-26 21:53:29 +02:00
Bjarne Koll 103187750e [ci skip] Update mache for codebook 1.0.15 (#12887) 2025-07-24 01:24:41 +02:00
Nassim Jahnke a5f2f6140d Fix offhand item desync on cancelling interact events (#12828) 2025-07-22 10:42:22 +02:00
ookiegajwa 602ea9f0e1 Restore previous PlayerToggleSneakEvent behaviour (#12815)
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
2025-07-20 23:54:27 +02:00
Jake Potrebic a2d37f12fb Remove invalid team colors nicely (#12874) 2025-07-20 22:42:24 +02:00
metabrix f7c59f914c Fix broken resource pack API when configured in configuration stage (#12866)
Correctly return the resource pack status from Player#getResourcePackStatus()
when the resource pack was send and accepted during the configuration stage.
2025-07-18 20:22:28 +02:00
Spottedleaf aa4ef06748 Update DataConverter constants for 1.21.8 2025-07-17 16:23:33 -07:00
Spottedleaf d8cb3f5852 Update DataConverter to 1.21.8-RC1
Add a non-Vanilla converter which removes ENTITY fall_distance
entries if they are equal to 0.0. This fixes incorrectly
converted data before https://github.com/PaperMC/DataConverter/commit/b6675e47ca068f152c3b648b3869fe63ca12b720
2025-07-17 07:03:10 -07:00
Spottedleaf 04f95191f1 Fix spawners converted from 1.21.4 not running finalisation logic
DataConverter incorrectly placed a fall_distance value with 0.0
if the entity did not have a FallDistance entry. This results in the
entity spawn data having 2 entries, which prevents finalisation
logic from running.

We can fix this by removing the fall_distance entry if it is 0.0.

In 1.21.8 there will be a proper fix for this and the patch can be
dropped.
2025-07-16 10:33:06 -07:00
Spottedleaf 21fb54246e Do not write fall_distance tag unless it already existed before
It looks like BaseSpawner will not run natural spawn finalization
unless the entire data tag only contains the ID.

This only fixes converting old data, we need a fix for already
converted data.
2025-07-15 17:09:06 -07:00
Shane Freeder 94d60e15b3 Copy thrown pearls list for removal (#12840) 2025-07-14 23:04:02 +02:00
Brokkonaut d9b5003fa1 Dried Ghast events and Happy Ghast spawn reason (#12788) 2025-07-14 17:56:44 +02:00
Jake Potrebic 533d93c758 Don't consume anchor charge if loc changes (#12835) 2025-07-12 19:03:48 +00:00
Nassim Jahnke cb47e01823 Remove more dead code, fix pre-existing desync when cancelling and closing container 2025-07-11 22:24:20 +02:00
Nassim Jahnke a939945148 Fixup sendAllDataToRemote calls
Reduces unnecessary item copies by a lot
2025-07-11 17:43:05 +02:00
Jake Potrebic b4466ec981 Dialog API (#12671) 2025-07-06 20:49:43 +02:00
Jason Penilla 6e598f8527 Fix incorrect createPath overload arguments, fixes #12043 (#12794)
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
Co-authored-by: Shane Freeder <theboyetronic@gmail.com>
2025-07-03 12:40:19 -07:00
Owen 0cadaefc09 Fix quitmessage nullability issues (#12783) 2025-07-01 18:44:17 -04:00
Nassim Jahnke 3fec37a9c1 Move the double call into the dispatch method
At some point later,
2025-07-01 21:44:24 +02:00
Nassim Jahnke c3be00f0ec Always call plugin message dispatch on PlayerConnection 2025-07-01 21:09:44 +02:00