Jake Potrebic
533d93c758
Don't consume anchor charge if loc changes ( #12835 )
2025-07-12 19:03:48 +00:00
Nassim Jahnke
a939945148
Fixup sendAllDataToRemote calls
...
Reduces unnecessary item copies by a lot
2025-07-11 17:43:05 +02:00
Owen
7f60924390
Configuration API ( #12301 )
...
This implements a solution that preemptively exits the tick loop if we have already marked the connection as disconnecting. This avoids changing the result of Connection#isConnected in order to avoid other possibly unintentional changes. Fundamentally it should be investigated if closing the connection async is really still needed.
This also additionally removes the login disconnecting logic for server stopping, as this was also a possible issue in the config stage but also shouldn't be an issue as connections are closed on server stop very early.
Additionally, do not check for isConnecting() on VERIFYING, as that seemed to be an old diff originally trying to resolve this code, however isConnected is not updated at this point so it pretty much was useless.
2025-06-30 11:49:15 +02:00
Shane Freeder
35b2c6ece4
Use dropped item for stats info ( #12747 )
...
We are already using the dropped stack to determine the type, we
might as well also use it for the count, given that plugins can already
mutate the type, might as well let them mess with the amount.
2025-06-26 19:44:29 +01:00
Bjarne Koll
a24f9b204c
1.21.6 dev
...
Co-authored-by: Bjarne Koll <git@lynxplay.dev >
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com >
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com >
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com >
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com >
Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com >
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com >
2025-06-17 15:45:25 +02:00
Bjarne Koll
ee3b405316
Replace spigot check with generation check
2025-05-24 22:43:48 +02:00
Bjarne Koll
b8fe22c9cd
Do not call EntityRemoveEvent during worldgen ( #12588 )
...
Ports the follow commits from spigot to paper.
All credits to go the respective commit authors listed below.
CraftBukkit: 3b4fd5b321f4440a2b3a67f3945739b45e6e687f
By: md_5 <git@md-5.net >
2025-05-24 22:17:42 +02:00
Nassim Jahnke
358e72ec0d
Remove simplify remote item matching stuff for now
...
Twas broken for some time and I haven't had time to address it, this may be revisited later in a different way
2025-05-09 14:47:24 +02:00
Jakub Zacek
ab0253fecd
Expand PlayerDeathEvent API ( #12221 )
2025-05-06 20:14:58 -04:00
Lulu13022002
567f63ae34
Parity for respawn events ( #11792 )
2025-04-30 20:04:24 +02:00
Nassim Jahnke
1410a22bb2
Fix passengers sending when riding players
...
Fixes #12468
2025-04-24 13:59:28 +02:00
Bjarne Koll
6c2b0378fe
Use correct saved data key for maps
2025-04-16 20:26:53 +02:00
David
6b4ad08259
Add PlayerRespawnEvent#isMissingRespawnBlock ( #12422 )
2025-04-14 19:43:19 +02:00
Emily
723b511fe1
Clone exit location passed to teleport event ( #12354 )
...
The exit location passed to PlayerTeleportEvent/PlayerTeleportEndGatewayEvent in ServerPlayer#teleport(TeleportTransition) needs to be cloned, as it is later compared in case it was changed. Not cloning it results in the ability for plugins to mutate it but such changes will be ignored, as the instance of the Location being the same results in a successful equality check.
It is not necessary to clone the location in other instantiations of the event (or subclasses) as those are not compared afterwards to change the outcome.
2025-04-14 17:28:29 +02:00
Nassim Jahnke
f00727c57e
1.21.5
...
Co-authored-by: Bjarne Koll <git@lynxplay.dev >
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com >
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com >
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev >
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev >
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com >
Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com >
Co-authored-by: Shane Freeder <theboyetronic@gmail.com >
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com >
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com >
Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com >
2025-04-12 17:27:00 +02:00
Nassim Jahnke
310f52293b
Add unsupported config option and internal API to simplify remote item matching
...
This is important for 1.21.5 servers/clients and non-Vanilla clients that may not be able to match 1.21.5 data hashes anymore
2025-03-13 12:32:50 +01:00
Bjarne Koll
e5d988df85
Revert "Fix cancelling PlayerInteractEvent at (0, 0, 0) ( #12215 )"
...
This reverts commit a2b0ff0644
.
2025-03-09 18:39:08 +01:00
Noah van der Aa
a2b0ff0644
Fix cancelling PlayerInteractEvent at (0, 0, 0) ( #12215 )
...
---------
Co-authored-by: Warrior <50800980+warriorrrr@users.noreply.github.com >
2025-03-08 16:52:10 -05:00
Spottedleaf
4519857817
Set old position / rotation for newly created entities
...
Set the old pos/rot to be the same as the current pos/rot for new
entities as the default value for the old pos/rot is zero.
Fixes https://github.com/PaperMC/Folia/issues/302
2025-03-08 06:33:29 -08:00
bonan
e5a8ee849f
Hide soul speed particles for vanished players ( #12152 )
...
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com >
2025-02-21 12:02:32 +01:00
Creeam
a3781ff3be
Separate tick count to ensure vanilla parity ( #12077 )
2025-02-16 20:46:37 +01:00
caramel
7e21cb8181
fix PlayerChangedMainHandEvent javadoc ( #12020 )
...
* fix PlayerChangedMainHandEvent javadoc
* Obsolete
---------
Co-authored-by: Bjarne Koll <lynxplay101@gmail.com >
2025-01-26 14:00:32 -08:00
Bjarne Koll
8e80d4e158
Correctly construct StructureManager
2025-01-14 19:21:52 +01:00
Bjarne Koll
209e5f8580
Readd dropped hunk for ender dragon fight data ( #11975 )
...
Dragon fight data should be read from the now split world instead of the
main world level.dat.
Partial hunk was dropped during hardfork.
2025-01-14 19:03:30 +01:00
Strokkur24
93a3df085c
Extend HumanEntity#dropItem API ( #11810 )
2024-12-28 23:47:21 +01:00
Warrior
763b32d825
Fix framed maps looping through all players in world ( #11819 )
2024-12-25 12:31:03 +01:00
Lulu13022002
9e2d39cd26
Fix double chest identification ( #11812 )
2024-12-24 22:57:24 +01:00
Nassim Jahnke
3b0b3a0aef
and some more
2024-12-21 13:45:04 +01:00
Nassim Jahnke
82216a59fe
Apply some feature patches to files instead
...
They're small and/or really shouldn't be left unapplied
2024-12-21 13:21:47 +01:00
Nassim Jahnke
e0593e9286
More diff/changed variable name cleanup
2024-12-21 12:15:25 +01:00
Spottedleaf
6186079231
Migrate ChunkSystem class to PaperHooks
2024-12-20 09:22:42 -08:00
Bjarne Koll
fd1b6b1ae9
Readd configurable auth server down kick message
2024-12-20 03:07:59 +01:00
Bjarne Koll
68bbd2e202
Improve diff in ServerPlayer#openHorseInventory
2024-12-20 03:07:58 +01:00
Bjarne Koll
993db46961
Comment typo
2024-12-20 03:07:58 +01:00
Bjarne Koll
431303ff40
Move ChunkMap setServerViewDistance to ATs
2024-12-20 03:07:58 +01:00
Nassim Jahnke
a438cc45f6
Small diff cleanup
2024-12-19 15:55:01 +01:00
Lulu13022002
5922e6334b
fix allowPermanentBlockBreakExploits config
2024-12-18 23:35:47 +01:00
Lulu13022002
6126012369
readd beacon effect cause
2024-12-18 19:29:39 +01:00
Nassim Jahnke
972266605e
Remove dead code, param renames in added methods
2024-12-17 22:04:50 +01:00
Nassim Jahnke
d94e258d01
Clean up add/removePluginChunkTicket
...
No need to be that invasive to Vanilla code for simple, non-hot and small collection checks
2024-12-17 21:40:20 +01:00
Bjarne Koll
88b2981e09
Readd final mod to ChunkHolder#getTickingChunk
2024-12-17 20:32:08 +01:00
Lulu13022002
9e8a2de45b
readd bukkit extra data to entity tags
2024-12-16 18:07:41 +01:00
Lulu13022002
783b3b70e6
readd dropped event in InteractWithDoor
2024-12-16 17:29:46 +01:00
Nassim Jahnke
f8cb014d20
Move Aikar's EAR 1 into EAR 2 patch
2024-12-16 14:08:25 +01:00
Nassim Jahnke
a15bb2bbd0
Fix and clean up MapItemSavedData Spigot patch
...
It's been dysfunctional for a good while, though I don't think it's even needed. That can be investigated later
2024-12-16 09:56:45 +01:00
Owen1212055
360006bc7f
Fix bouncy items
...
This reverts EAR diff to be how it is paper proper-- seems like alot of this got dropped.
2024-12-15 22:27:32 -05:00
Owen1212055
59a1f78750
Fix sleeping
2024-12-15 20:52:03 -05:00
Owen1212055
2e14d98ebe
Fix item dropping
2024-12-15 20:33:21 -05:00
Jake Potrebic
4912737b8d
fix issue in ServerPlayerGameMode
2024-12-15 15:20:33 -08:00
Jake Potrebic
b40c4e2179
fix initial runtime errors
2024-12-15 15:07:32 -08:00