aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-12-02Updated Upstream (Bukkit/CraftBukkit/Spigot)upstream-updateBjarne Koll
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: ed0ec489 SPIGOT-7965: Unknown TransformReason for Hoglins 9db03457 SPIGOT-7964: Fix typo in Deprecation annotation d14119af PR-1082: Add "since" to Deprecation annotations e8a318d4 PR-1067: Add method to get Advancement requirements CraftBukkit Changes: 40dd796db SPIGOT-7971: NotSerializableException on serialize CraftUseCooldownComponent fa85c5e0a SPIGOT-7968: ProjectileHitEvent not trigerred when arrow hits entity b75b792ec SPIGOT-7970: World#getMaxHeight() returning incorrect value 2b9a094bb SPIGOT-7965: Unknown TransformReason for Hoglins fd3f5a380 SPIGOT-7966: Some trees do not generate with #generateTree f2822317c PR-1515: Add a Class reader and Class node argument provider 07abf6852 PR-1514: Add a test case for ClassTraverser a7577cb24 Fix Inventory#addItem not respecting max stack size 066a74e74 PR-1490: Add method to get Advancement requirements 4a1df30e4 PR-1512: Test Art class based on specific values instead of the implementation, to better catch implementation changes 53254c56f PR-1503: Simplify CAS loop to getAndSet e9447dc5e Make BlockDataMeta#setBlockData hide unspecified states dd08a7120 SPIGOT-7960: Fix inconsistency between natural item drop coordinates e9e8ed753 SPIGOT-7960: Improve natural item drop methods Spigot Changes: 60c9969b Rebuild patches
2024-12-01Fix several off-by-one errors in view distance calculationsSpottedleaf
1. For NearbyPlayers, we need to be using the view distance, and not the load distance (which is +1 of the view distance). 2. Correctly clamp tick distance to view distance. Since load distance is +1 of view distance, we need to subtract one from the load distance when clamping. Additionally, add checks inside ViewDistances to ensure that the inputs are in range to catch future errors. Also, clamp simulation distance, as values < 0 or above MAX_VIEW_DISTANCE do not make sense to configure.
2024-12-01Properly handle large values of spawnChunkRadiusSpottedleaf
The chunk system does not allow ticket levels below 0, so we need to add tickets for each individual chunk instead.
2024-12-01Do not break when PlayerNaturallySpawnCreaturesEvent is cancelledSpottedleaf
If there is a player nearby which had its event not cancelled, then that should take precedence.
2024-12-01Fix non-null initialisation of context collision shapeSpottedleaf
Force LazyEntityCollisionContext#getEntity() to delegate - By delegating when the entity is retrieved, we can correctly catch cases where the collision method is inspecting some entity state. Adjust constant collision shape determination - Our previous hack did not actually catch every case. For now, it will only assume a constant collision shape of EMPTY for air blocks. Fixes https://github.com/PaperMC/Paper/issues/11697
2024-12-01Only attempt to find spawn position if there isn't a fixed spawn position ↵MrPowerGamerBR
set (#11682)
2024-11-30Fix item_model adapter, rename internal classesNassim Jahnke
Fixes #11688
2024-11-30Add back discard policyNassim Jahnke
2024-11-29Deprecate ChatVisibility#UNKNOWN (#11683)Lulu13022002
2024-11-29Copy dispatcher root children before passing it into async tree buildingNassim Jahnke
2024-11-29Clean up thread pool usage (#11681)Nassim Jahnke
Using an unbound LinkedBlockingQueue means you *have* to set core and max core thread pool size the same, as they will never go above the minimum pool size by just passing them through. So this fixes the async command executor pool to actually use 2 threads, and also cleans up other usage to be explicitly "fixed" thread pool sizes, and splits off one more in Minecraft's Util class
2024-11-29[ci skip] leafNassim Jahnke
2024-11-28Remove chunk save reattempt patchSpottedleaf
This patch does not appear to be doing anything useful, and may hide errors. Currently, the save logic does not run through this path either so it did not do anything. Additionally, properly implement support for handling RegionFileSizeException in Moonrise.
2024-11-28Use Player view distance for PlayerNaturallySpawnCreaturesEventSpottedleaf
The spigot view distance may not be correct, as the player may have a specific view distance configured.
2024-11-28Copy items when constructing ClientboundSetCursorItemPacketSpottedleaf
Unlike ClientboundContainerSetSlotPacket, the constructor itself does not copy the item. Thus, we need to pass a copy of the item to the constructor.
2024-11-28deprecate adventure key() methods where applicableJake Potrebic
2024-11-28Remove string dupe exploit setting (#11670)Noah
2024-11-27Do not call modifyEntityTrackingRange on own rangeSpottedleaf
The range is already modified, so this call will not do anything.
2024-11-27Replace SimpleRandom with (Simple)ThreadUnsafeRandomSpottedleaf
ThreadUnsafeRandom is a random implementation that is identical to LegacyRandomSource behaviourally, but without the thread checks. SimpleThreadUnsafeRandom is ThreadUnsafeRandom except with its nextInt(int) function replaced with a faster but more biased implementation when bound is very large. Additionally, replace Level/Entity randoms with ThreadUnsafeRandom. This avoids the expensive CAS logic at the expense of losing the thread check.
2024-11-26Prevent duplicate/superfluous BlockPhysicsEvent (#11609)Lulu13022002
2024-11-26Expose particle status client option (#11573)Lulu13022002
2024-11-25[ci skip] leafNassim Jahnke
2024-11-25Add Server#isGlobalTickThreadSpottedleaf
This method should be present in Paper, not just in Folia, given that the GlobalRegionScheduler is present. Additonally, add Server#isOwnedByCurrentRegion(World, int, int, int, int) for checking of a rectangle of chunks is owned by the current region.
2024-11-25Change MinecraftServer#pluginsBlockingSleep to be SetSpottedleaf
A plugin should not be allowed to be added twice or more, as this would require two or more remove calls to unset the pause block.
2024-11-25Bump dawidd6/action-download-artifact from 3 to 6 in /.github/workflows (#11666)dependabot[bot]
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 3 to 6. - [Release notes](https://github.com/dawidd6/action-download-artifact/releases) - [Commits](https://github.com/dawidd6/action-download-artifact/compare/v3...v6) --- updated-dependencies: - dependency-name: dawidd6/action-download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-25[ci skip] fix compile issues caused by 5b53cb4 (#11664)Glicz
2024-11-24[ci skip] use more jspecify in serverJake Potrebic
2024-11-24Add all missing TagKey constants files (#11661)Jake Potrebic
2024-11-24Fix painting variant builder (#11660)Lulu13022002
2024-11-23[ci skip] Rebuild patchesJake Potrebic
2024-11-23Call ProjectileHitEvent for entity hits (#11652)Bjarne Koll
A simple bugfix replacing a new vanilla call to Projectile#hitTargetOrDeflectSelf with the bukkit replacement to call the event.
2024-11-23Painting variant registry modification API (#11648)kokiriglade
2024-11-23Correctly damage tick wolf after armor block (#11653)Bjarne Koll
Spigot incorrectly returns false in Wolf#actuallyHurt if the armor absorbed the damage causing the entity to not get damage invuln ticks. Resolve this by correctly reverting to the "always true" return value as the event is not cancelled.
2024-11-23Configurable Entity Despawn Time (#11454)Jake Potrebic
* Configurable Entity Despawn Time Co-authored-by: Kevin Raneri <[email protected]> * Rebase * Rebase * rebase * throw exceptions for this map --------- Co-authored-by: Kevin Raneri <[email protected]>
2024-11-23Correctly mirror vanilla non-exact ingredients (#11651)Bjarne Koll
2024-11-23Support tags for more SimpleRegistry (#11607)Jake Potrebic
2024-11-23Make TypedKey an actual Key (#11641)Nassim Jahnke
2024-11-23Fix jukebox component (#11642)Lulu13022002
2024-11-23Run 'freeze' listeners before tag events (#11606)Jake Potrebic
2024-11-22Add API to allow/disallow tick sleeping (#11611)Abel
2024-11-22Add API to check if the server is sleeping (#11605)Abel
2024-11-21Check for AbstractBoat instead of Boat in EAR ignore listLulu13022002
2024-11-21[ci skip] Fix typosNassim Jahnke
2024-11-21Update sparkNassim Jahnke
2024-11-19Fix NPE when EntityResurrectEvent is uncancelled (#11636)Lulu13022002
2024-11-19Fix incorrect invulnerability damage reduction (#11599)Bjarne Koll
Fixes incorrect spigot handling of the invulnerability damage reduction applied when an already invulnerable entity is damaged with a larger damage amount than the initial damage. Vanilla still damages entities even if invulnerable if the damage to be applied is larger than the previous damage taken. In that case, vanilla applies the difference between the previous damage taken and the proposed damage. Spigot's damage modifier API takes over the computation of damage reducing effects, however spigot invokes this handling with the initial damage before computing the difference to the previous damage amount. This leads to the reduction values to generally be larger than expected, as they are computed on the not-yet-reduced value. Spigot applies these reductions after calling the EntityDamageEvent and *then* subtracts the previous damage point, leading to the final damage amount being smaller than expected. This patch cannot simply call the EntityDamageEvent with the reduced damage, as that would lead to EntityDamageEvent#getDamage() returning the already reduced damage, which breaks its method contract. Instead, this patch makes use of the DamageModifier API, implementing the last-damage-reduction as a DamageModifier.
2024-11-19Add PlayerItemGroupCooldownEvent (#11625)Nassim Jahnke
2024-11-19Fix drops for shearing mushroom cow (#11632)Lulu13022002
2024-11-19Fix drops for shearing bogged (#11628)Lulu13022002
2024-11-19[ci skip] Rebuild patchesBjarne Koll