summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-10-21Restrict BlockProjectileSource#launchProjectile1.21.1Lulu13022002
Spigot recently revamped their CraftBlockProjectileSource impl to make use of the the ProjectileItem logic. During this move however, a couple of types were added which do not provide a sensible ProjectileItem implementation. The commit restricts the API once again to types that represent useful ProjectileItems, removing support for the trident, enderpearl and breeze variant of the windcharge.
2024-10-21Some small touchups to the GUI (#11505)Shane Freeder
As noted on the issue, the method here can blow up in certain cases, the GUI logic already handles "the mouse is missing", and so, we'll just catch this and move on. Misc fix - There is probably an issue report for this somewhere, but, the details section utilised the bukkit singleton to try to get the TPS from the server. We already have the MinecraftServer instance passed into us, and so we'll just get the information directly from there instead. Fixes: #11494
2024-10-21Always send Banner patterns to the client (#11506)Shane Freeder
The mojang client will not remove patterns from a Banner when none are sent inside of an update packet, given that this is not an expected flow for them, this is not all too surprising. So, we shall resort to always sending the patterns over the network for update packets. Fixes: #11487
2024-10-21Fix potential annotation testing interruption (#11460)caramel
2024-10-21Updated Upstream (Bukkit/CraftBukkit) (#11501)Bjarne 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: bb4e97c6 Add support for Java 23 bc6874dd Bump asm to 9.7.1 50e8a00b PR-1064: Add specific getTopInventory methods for InventoryView derivatives 758b0a0f SPIGOT-7911: Fix Location#isWorldLoaded() for re-loaded worlds 133a64a7 Improve Registry#getOrThrow messages be0f5957 PR-1058: Add tests for Minecraft registry <-> Bukkit fields d1b31df2 PR-1062: Clarify BeaconView documentation 3fab4384 PR-1060: Cache Material to BlockType and ItemType conversion 967a7301 SPIGOT-7906: Increase YAML nesting limit to 100 6ecf033d SPIGOT-7899: Smithing recipes don't require inputs CraftBukkit Changes: 0a7bd6c81 PR-1493: Improve reroute performance and add some tests 54941524c Add support for Java 23 f4d957fff SPIGOT-7915: Fix World#getKeepSpawnInMemory() using Spawn Radius rather than Spawn Chunk Radius ded183674 Fix HIDE_ENCHANTS flag in items without enchantments 308785a0a Bump asm to 9.7.1 and re-add ClassReader to ClassWriter 72ce823cd PR-1487: Add specific getTopInventory methods for InventoryView derivatives 11a5e840c SPIGOT-7907, PR-1484: Improve merchant recipe item matching behavior to more closely align with older versions 45b66f7e4 SPIGOT-7909: Always set HIDE_ENCHANTS flag to item if flag is set 963459791 Increase outdated build delay fc5b2d75f SPIGOT-7910: Fix launching breeze wind charge from API and improve dispenser launch API c7d6428f2 SPIGOT-7856, PR-1483: End platform not dropping items after replacing blocks 2a5572b52 SPIGOT-7780, PR-1482: Cannot edit chunks during unload event 527041ab5 SPIGOT-7902, PR-1477: Fix CraftMetaPotion#hasCustomEffects() does not check if customEffects (List) is empty 5529a1769 Implement base methods for tags 30fbdbaaf Improve Registry#getOrThrow messages 6b71a7322 PR-1475: Add tests for Minecraft registry <-> Bukkit fields 5f24c255c SPIGOT-7908: Mark junit-platform-suite-engine as test scope e4c92ef65 PR-1473: Change tests to use suites, to run tests in different environments and feature flags d25e1e722 PR-1481: Fix BeaconView#set[X]Effect(null) d69a05362 PR-1480: Fix PerMaterialTest#isEdible test running for legacy materials bb3284a89 PR-1479: Use custom #isBlock method in legacy init instead of the one in Material, since it relies on legacy being init 98c57cbbe SPIGOT-7904: Fix NPE for PlayerItemBreakEvent f35bae9ec Fix missing hasJukeboxPlayable 8a6f8b6d8 SPIGOT-7881: CTRL+Pick Block saves position data into item 7913b3be7 SPIGOT-7899: Smithing recipes don't require inputs
2024-10-17[ci skip] rebuild patchesShane Freeder
2024-10-16Add proper async player disconnectionsSpottedleaf
Blocking can cause performance problems
2024-10-12Add AnvilView#bypassEnchantmentLevelRestriction (#11475)Pedro
2024-10-12Add offline PDC API (#8117)Lulu13022002
2024-10-09Fix CraftMagicNumbers#getTag (#11484)TonytheMacaroni
2024-10-03Check if leash tag has a uuidNassim Jahnke
2024-10-02[ci skip] Add section on nullability annotations (#11461)Nassim Jahnke
2024-10-02Use components properly in ProfileWhitelistVerifyEvent (#11456)Jake Potrebic
2024-10-02Fix hex color checkNassim Jahnke
2024-09-30Finish converting most of the undeprecated api to jspecifyJake Potrebic
2024-09-29Finish converting all events to jspecify annotationsJake Potrebic
2024-09-30Do not NPE on uuid resolution in player profile (#11449)Bjarne Koll
Band-aid fix for the player profile api resolution for a profile with name but without uuid. The real solution is a proper refactoring of the completeFromCache and complete method internally, however this needs further consideration regarding existing faulty behaviour around name lookups from uuid-only profiles.
2024-09-30Configurable per-world void damage offset/damage(#11436)Axionize
2024-09-29Add PlayerInsertLecternBookEvent [1.20 port] (#7305)Noah van der Aa
* Add PlayerInsertLecternBookEvent * Rebase Additionally, moves the event call higher up and removes the lectern block state clone from the event. * jSpecify * Shrink correctly * style fixups * move methods * rename param to cancel * fix javadocs * more javadoc fixes * fix co-author on patch from yesterday * last fix --------- Co-authored-by: Mariell Hoversholm <[email protected]> Co-authored-by: Bjarne Koll <[email protected]>
2024-09-29Begin switching to JSpecify annotations (#11448)Jake Potrebic
* Begin switching to JSpecify annotations * more * fixes
2024-09-29Call bucket events for cauldrons (#7486)Jake Potrebic
2024-09-28Add API for explosions to damage the explosion cause (#11180)Esoteric Enderman
This intends to give plugin developers more control over explosions created using the World#createExplosion method, specifically by adding the option for explosions to damage the explosion cause (not the default behavior, and previously impossible to do, as far as I know). This is done by overloading existing methods with an extra `excludeSourceFromDamage` parameter. Co-authored-by: Bjarne Koll <[email protected]>
2024-09-28Add startingBrewTime (#11406)Tamion
* add startingBrewTime * casting * requests * comments and fix setBrewTime * a * b * move to own class * rename * missing Paper comment * missing experimentals * rebased --------- Co-authored-by: Jake Potrebic <[email protected]>
2024-09-28Improve entity effect API (#11444)Jake Potrebic
2024-09-28Update paperweight to 1.7.3 (#11445)Jason Penilla
2024-09-27Fix console completions on invalid commands (#7603)Jake Potrebic
2024-09-27Add enchantWithLevels with tag specification (#11438)masmc05
* Add enchantWithLevels with tag specification * Finalise --------- Co-authored-by: Bjarne Koll <[email protected]>
2024-09-27fix ItemStack#removeEnchantments creating non-stackable items (#11442)Jake Potrebic
2024-09-27Remove redundant fillUsableCommands call (#11425)Jake Potrebic
2024-09-27Deprecate for removal Block#isValidTool (#11439)Jake Potrebic
The method's implementation uses Block#getDrops which re-computes the drops from the loot table each call leading to isValidTool returning different values with subsequent calls.
2024-09-27Call EntityDropItemEvent when a container item drops its contents (#11441)Brokkonaut
2024-09-27Adjust HAProxy's existance to log for console masters (#11433)Stefano
2024-09-26use correct types for preloading CraftRegistryJake Potrebic
also add a check in CraftRegistryEntry constructor to make sure preload class isn't in net.minecraft package
2024-09-24Fix tag lifecycle event handlers not disabling /reloadJake Potrebic
2024-09-23Add missing key files and cleanup registry definition orderJake Potrebic
2024-09-23make MenuType implement FeatureDependantJake Potrebic
2024-09-22Only call EntityPortalExitEvent if entity is actually in a portalJake Potrebic
2024-09-22Expand out datapack API (#10828)Jake Potrebic
* Expand out datapack API * add getTitle * better enable check
2024-09-22Fix Color Particle API (#10895)TreemanKing
* fix: check datatype of particles rather than particle-type * feature: add ARGB channels It keeps the functionality of the original color(int). * fix: order * fixes --------- Co-authored-by: Jake Potrebic <[email protected]>
2024-09-22Fixup command precprocess cancellation (#11424)Nassim Jahnke
2024-09-22Add ItemStack array serialization methods (#10387)Nassim Jahnke
2024-09-22Add velocity forwarding secret env override (#10127)Oliver Janka
Previously, the velocity forwarding secret could only be configured via the configuration option in the global paper configuration. This makes configuring/passing such a value rather difficult for containerized/orchestrated servers as these configuration files are usually part of the server data volume itself and hence cannot be sourced from a secret. This commit enables administrators to define the PAPER_VELOCITY_SECRET environment variable, which will override any potentially configured velocity secret.
2024-09-22Deprecate BlockType#isInteractable (#11427)Bjarne Koll
While BlockType is still marked as internal, it mirrors the already paper-deprecated method #isInteractable. The commit marks said method as deprecated if/when BlockType becomes experimental/non-internal.
2024-09-21Update launchProjectile API (#11300)Lulu13022002
2024-09-21Create TileStateInventoryHolder (#11420)Jake Potrebic
Adds a missing interface to centralize getSnapshotInventory methods.
2024-09-21Correctly launch WindCharges (#11418)Bjarne Koll
The launch API on LivingEntity only respected the WindCharge type, not its near-clone BreezeWindCharge. This commit correctly accounts for BreezeWindCharge in CraftLivingEntity.
2024-09-21Disable pretty printing for advancement saving (#11419)Newwind
2024-09-21Return null in getRegistry(Class) for unknown type (#11422)Bjarne Koll
The Bukkit#getRegistry(Class) method contract specifies that it returns null for unknown registry types. The current implementation however requires the passed class to be mappable to a known registry key. For types like Material, which have a SimpleRegistry in bukkit's Registry interface, no server side registry exists and such the type cannot be mapped to a registry key. The commit correctly returns null for types that are not mappable to a registry key instead of throwing a NullPointerException.
2024-09-19Remove wall-time / unused skip tick protection (#11412)Bjarne Koll
Spigot still maintains some partial implementation of "tick skipping", a practice in which the MinecraftServer.currentTick field is updated not by an increment of one per actual tick, but instead set to System.currentTimeMillis() / 50. This behaviour means that the tracked tick may "skip" a tick value in case a previous tick took more than the expected 50ms. To compensate for this in important paths, spigot/craftbukkit implements "wall-time". Instead of incrementing/decrementing ticks on block entities/entities by one for each call to their tick() method, they instead increment/decrement important values, like an ItemEntity's age or pickupDelay, by the difference of `currentTick - lastTick`, where `lastTick` is the value of `currentTick` during the last tick() call. These "fixes" however do not play nicely with minecraft's simulation distance as entities/block entities implementing the above behaviour would "catch up" their values when moving from a non-ticking chunk to a ticking one as their `lastTick` value remains stuck on the last tick in a ticking chunk and hence lead to a large "catch up" once ticked again. Paper completely removes the "tick skipping" behaviour (See patch "Further-improve-server-tick-loop"), making the above precautions completely unnecessary, which also rids paper of the previous described incompatibility with non-ticking chunks.
2024-09-19Only mark decorations dirty if a removal actually occurs (#11413)Shane Freeder
* Only mark decorations dirty if a removal actually occurs Vanilla calls this method blindly inside of a loop which erroniously marks map data files as being dirty even if nothing has actually changed. * Merge into existing patch --------- Co-authored-by: Bjarne Koll <[email protected]>