Commit Graph

8043 Commits

Author SHA1 Message Date
Spottedleaf d7561e90f0 Properly call overloaded super onDisconnect
Since the method is overloaded, the call to super (which is changed
to call the overloaded method) without the additional parameters
will result in recursion.
2023-09-26 13:16:21 -07:00
Spottedleaf ec66a2c91c Fire PlayerConnectionCloseEvent for configuration packet listener
If the player moves to the configuration stage, we also need
to fire the event.
2023-09-26 09:20:17 -07:00
Spottedleaf 68e28c6750 Fix VoxelShape#isFullBlock() for non-single AABB types
The correct logic to implement NOT_SAME with Shapes#block()
is to test whether any shape data exists outside of [0.0, 1.0]
and to test whether the shape is completely filled from 0.0 to 1.0
on all axis. This can be implemented by checking whether the
bounds represent the full block and whether everything within
the bounds is filled.
2023-09-26 09:16:11 -07:00
Jake Potrebic 9c0b169922 Fix tests that broke during the junit 5 update (#9757)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2023-09-24 16:05:05 -07:00
Shane Freeder 3ebe415f47 Fix/update wiki (#9758) 2023-09-25 00:02:46 +01:00
Shane Freeder 1a1af91ce3 Handle new brand payload type 2023-09-24 19:48:29 +01:00
Warrior 2474c6ac97 Fix missing map initialize event call & missing map id assignment (#9756) 2023-09-24 21:17:29 +03:00
Nassim Jahnke 358877e2e2 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
fb23cbb3 Define surefire plugin version
d022084a Define ordering for MetadataStoreTest
99a7f6f0 PR-910: Match generic max absorption attribute name style with the rest
c7390d71 PR-909: Update tests to JUnit 5

CraftBukkit Changes:
f0661c351 PR-1230: Move unstructured PDC NBT serialisation to SNBT
452fcb599 PR-1256: Update tests to JUnit 5
2023-09-24 17:16:58 +10:00
Spottedleaf 63a40050bd Re-add remove streams for Brain AI patch 2023-09-23 23:38:51 -07:00
Spottedleaf 0ef267f0e7 Optimise nearby player retrieval
Instead of searching/testing every player online on the server,
we can instead use the nearby player tracking system to reduce
the number of tests per search.
2023-09-23 23:16:45 -07:00
Nassim Jahnke 9abaff8a66 Use correct ClientboundLevelChunkWithLightPacket constructor in later patch 2023-09-24 16:29:07 +10:00
Jake Potrebic 6c18da61ba Fix some issues 2023-09-23 22:33:17 -07:00
Spottedleaf 7834ec5bcc Fix race condition on UpgradeData.BlockFixers class init
The CHUNKY_FIXERS field is modified during the constructors
of the BlockFixers, but the code that uses CHUNKY_FIXERS does
not properly ensure that BlockFixers has been initialised before
using it, leading to a possible race condition where instances of
BlockFixers are accessed before they have initialised correctly.

We can force the class to initialise fully before accessing the
field by calling any method on the class, and for convenience
we use values().
2023-09-23 22:15:09 -07:00
Spottedleaf 0e092b4f36 Add lag compensation for breaking blocks 2023-09-23 22:10:40 -07:00
Spottedleaf a20286c5a8 Optimise chunk tick iteration
When per-player mob spawning is enabled we do not need to randomly
shuffle the chunk list. Additionally, we can use the NearbyPlayers
class to quickly retrieve nearby players instead of possible
searching all players on the server.
2023-09-23 21:43:10 -07:00
Nassim Jahnke 0b16cce6e6 Drop no longer needed patch 2023-09-24 13:09:52 +10:00
Nassim Jahnke 886e4f56b5 Readd anti xray and oversized block entity patches 2023-09-24 12:35:16 +10:00
Noah van der Aa 0b0aa1201b Migrate paper log ips option to new server.properties option 2023-09-23 21:37:26 +02:00
Jason Penilla 72cd5b183d Add missing kick event cause 2023-09-23 08:50:32 -07:00
Lulu13022002 8560e471b8 Fix SuspiciousStewMeta 2023-09-23 16:41:51 +02:00
Lulu13022002 645afb11f7 fix test 2023-09-23 13:38:46 +02:00
Owen1212055 1b5c9db2e2 Remove Spigot Bug Fix for MC-109346 2023-09-23 01:51:40 -04:00
Owen1212055 9a66eb3eaa Support Paper ip address config + add missing logs 2023-09-23 01:50:13 -04:00
Nassim Jahnke 17f71281d2 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appear to apply and compile correctly.
This update has not been tested by PaperMC and as with ANY update, please do your own testing

Bukkit Changes:
dfe1fb48 PR-906: Add missing MinecraftExperimental annotation to Bundles
825ab30d PR-905: Add missing MapCursor.Type and update documentation
e03d10e6 PR-903: Make BARRIER Waterlogged
1961ead6 PR-898: Use Java Consumer instead of Bukkit Consumer

CraftBukkit Changes:
f71a799f0 Make BARRIER Waterlogged
172f76a45 Upgrade specialsource-maven-plugin
f0702775c SPIGOT-7486: Alternate approach to null profile names
069495671 SPIGOT-7485: Allow air entity items since required for Vanilla logic
5dfd33dc2 SPIGOT-7484: Cancelling PlayerEditBookEvent does not update client's book contents
02d490788 PR-1250: Standardize and centralize Bukkit / Minecraft registry conversion
9024a09b9 PR-1251: Use Java Consumer instead of Bukkit Consumer
6d4b25bf1 Increase diff stability
2023-09-23 12:06:03 +10:00
Nassim Jahnke 6bdb4d129d Update foojay resolver convention plugin 2023-09-23 11:46:31 +10:00
Nassim Jahnke 663a0d893e Readd network optimization patch 2023-09-23 11:45:34 +10:00
Spottedleaf 7a108cda40 Make sure to maintain the players sent to set for ChunkHolder
Required for proper block/light updates to clients
2023-09-22 17:07:02 -07:00
Nassim Jahnke 910c6b25b9 Fix chat processing 2023-09-23 09:58:19 +10:00
Nassim Jahnke 7e02ed1a60 Fix local attribute setting 2023-09-23 09:42:59 +10:00
Nassim Jahnke 3ecca26a7b Revert "re-add distance map patch"
This reverts commit 99baa36800.
2023-09-23 09:38:10 +10:00
Jake Potrebic 99baa36800 re-add distance map patch 2023-09-22 16:26:10 -07:00
Jake Potrebic f6d4cdfc99 fixup display slots patch (#9746) 2023-09-22 16:07:33 -07:00
Jake Potrebic e6ae21d0c8 Fixup advancement patch (#9745) 2023-09-22 16:03:34 -07:00
Spottedleaf 15183b44de Port patches from folia dev/optimisations 2023-09-22 15:54:36 -07:00
Spottedleaf 52a9b1c91e Fix recursion with pathfind entity event
With the function overload, need to pass the entity
through to the super call
2023-09-22 15:38:31 -07:00
Spottedleaf 1efbbb3ef9 Add some patches, fix compile 2023-09-22 15:33:14 -07:00
Spottedleaf 9bf842c13e Chunk system patch 2023-09-22 13:13:57 -07:00
Jason Penilla 05f9968013 Rebuild patches 2023-09-22 10:59:56 -07:00
Jason Penilla 845d5e7a06 Move unapplied patches so ATs import 2023-09-22 10:57:13 -07:00
MiniDigger | Martin 3f4950410d some more compile fixes 2023-09-22 19:43:52 +02:00
MiniDigger | Martin 65e89bf179 some compile fixes 2023-09-22 19:31:02 +02:00
Noah van der Aa 529b5534e7 more more more more more more more more more more more work: passing the torch 2023-09-22 17:51:48 +02:00
Lulu13022002 77719b1566 some compile issues 2023-09-22 19:25:18 +02:00
Lulu13022002 fdf4e8726b more work
all server patches done (almost)
2023-09-22 18:59:52 +02:00
Lulu13022002 0925b4af6f some work 2023-09-22 18:11:35 +02:00
Noah van der Aa 411f78293c more more more more more more more more more more more work: passing the torch 2023-09-22 17:51:48 +02:00
Noah van der Aa 9e63e24f0b more more more more more more more more more more work 2023-09-22 17:35:51 +02:00
Noah van der Aa 2b7e17a127 more more more more more more more more more work 2023-09-22 17:24:59 +02:00
Noah van der Aa 26dc16de31 more more more more more more more more work 2023-09-22 17:08:04 +02:00
Noah van der Aa d518a2739d more more more more more more more work
can't let lynx inflate his commit count too much
2023-09-22 16:58:35 +02:00