aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-10-30Backport small fixesver/1.20.6Nassim Jahnke
2024-09-16Fix BasicCommand suggestion arg countPieter Svenson
Resolves: #11211 Backport-of: #11241
2024-08-24Updated Upstream (CraftBukkit/Spigot)Nassim Jahnke
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 CraftBukkit Changes: 65247583f SPIGOT-7857: Improve ItemMeta block data deserialization 05d80500d SPIGOT-7857: Fix spurious internal NBT tag when deserializing BlockStateMeta cebb58e9a SPIGOT-7804: Fix written book serialization efcdd5d38 SPIGOT-7794: Cancelling InventoryItemMoveEvent destroys items b568ba572 SPIGOT-7789: Fix NPE in CraftMetaFirework applyToItem f057cf449 Remove outdated build delay Spigot Changes: f6a48054 SPIGOT-7835: Fix issue with custom hopper settings bb63b137 Rebuild patches e1142b4d Rebuild patches
2024-07-02Backport `LivingEntity#canUseEquipmentSlot` API (#11013)Aya
2024-06-17Fix `hasFiredAsync` parameter when `AsyncPlayerSendCommandsEvent` is called ↵willkroboth
(#10896)
2024-06-17Fix NPE in V3808Spottedleaf
The armor items may not exist, so we need to null check it.
2024-06-15Configurable damage tick when blocking with shield (#10877)Bjarne Koll
A long standing bug in spigot and its derivatives was the fact that players taking damage while blocking with a shield would not receive invulnerability, while they do in vanilla. This enabled the pvp technique of disabling a shield and immediately attacking again to knock a player into the air. While upstream fixed this and properly aligned itself with vanilla damage logic (in this specific case) changing such long standing behaviour has some downsides. To allow players used to this specific bug to still use it, this patch introduces a configuration option to re-introduce said bug. As there is no easy way to *only* re-add this bug, the option is found in the unsupported section as it may introduce other damage related disparity from vanilla.
2024-06-15Add back RecipeIterator fixes patch (#10887)Aya
2024-06-15Fix ItemMeta#removeEnchantments (#10886)Ghast
2024-06-15Fix Player#sendBlockUpdate (#10855)Jake Potrebic
2024-06-15Update AbstractArrow item method implementations for 1.20.6 (#10885)Jake Potrebic
2024-06-14Fixup and deprecate player profiles in ping event (#10880)Nassim Jahnke
2024-06-13Update upstream (Bukkit/CraftBukkit/Spigot) (#10875)1.20.6Bjarne 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: 376e37db SPIGOT-7677: Update which entities are marked as spawnable 06c4add3 SPIGOT-7737: Add separate TreeType.MEGA_PINE 19b7caaa SPIGOT-7731: Spawn eggs cannot have damage e585297e PR-1022: Add force option to Player#spawnParticle d26e0094 PR-1018: Add methods to get players seeing specific chunks 8df1ed18 PR-978: Add Material#isCompostable and Material#getCompostChance 4b9b59c7 SPIGOT-7676: Enforce locale parameter in toLowerCase and toUpperCase method calls and always use root locale 8d1e700a PR-1020: Cast instead of using #typed when getting BlockType and ItemType to better work with testing / mocks fa28607a PR-1016: Fix incorrect assumption of Fireball having constant speed 4c6c8586 PR-1015: Add a tool component to ItemMeta 6f6b2123 PR-1014: Add PotionEffectTypeCategory to distinguish between beneficial and harmful effects f511cfe1 PR-1013, SPIGOT-4288, SPIGOT-6202: Add material rerouting in preparation for the switch to ItemType and BlockType def44cbf SPIGOT-7669: Fix typo in ProjectileHitEvent#getHitBlockFace documentation 53fa4f72 PR-1011: Throw an exception if a RecipeChoice is ever supplied air CraftBukkit Changes: ee95e171a SPIGOT-7737: Add separate TreeType.MEGA_PINE 0dae4c62c Fix spawn egg equality check and copy constructor ab59e847c Fix spawn eggs with no entity creating invalid stacks and disconnect creative clients 3b6093b28 SPIGOT-7736: Creative spawn egg use loses components c6b4d5a87 SPIGOT-7731: Spawn eggs cannot have damage 340ccd57f SPIGOT-7735: Fix serialization of player heads with note block sound fd2f41834 SPIGOT-7734: Can't register a custom advancement using unsafe() 02456e2a5 PR-1413: Add force option to Player#spawnParticle 6a61f38b2 SPIGOT-7680: Per-world weather command 58c41cebb PR-1409: Add methods to get players seeing specific chunks 16c976797 PR-1412: Fix shipwreck loot tables not being set for BlockTransformers 7189ba636 PR-1360: Add Material#isCompostable and Material#getCompostChance 900384556 SPIGOT-7676: Enforce locale parameter in toLowerCase and toUpperCase method calls and always use root locale bdb40c5f1 Increase outdated build delay d6607c7dd SPIGOT-7675: Fix FoodComponent config deserialization b148ed332 PR-1406: Fix incorrect assumption of Fireball having constant speed 3ec31ca75 PR-1405: Add a tool component to ItemMeta 5d7d675b9 PR-1404: Add PotionEffectTypeCategory to distinguish between beneficial and harmful effects 960827981 PR-1403, SPIGOT-4288, SPIGOT-6202: Add material rerouting in preparation for the switch to ItemType and BlockType 94e44ec93 PR-1401: Add a config option to accept old keys in registry get calls a43701920 PR-1402: Fix ChunkSnapshot#isSectionEmpty() is always false 87d0a3368 SPIGOT-7668: Move NONE Registry updater to FieldRename to avoid some class loader issues 2ea1e7ac2 PR-1399: Fix regression preventing positive .setDamage value from causing knockback for 0 damage events ba2d49d21 Increase outdated build delay Spigot Changes: fcd94e21 Rebuild patches 342f4939 SPIGOT-7661: Add experimental unload-frozen-chunks option
2024-06-10Prevent internal NPE on ItemStack#damage (#10836)Bjarne Koll
ItemStack#damage internally uses ItemStack#hurtAndBreak, which previously would call a Consumer in case the item broke. Since 1.20.5 the break game event logic however resides in said method and was using the equipment slot passed, which is null in the case of the API ItemStack#damage method. This commit prevents the NPE by first null checking the slot. Addittionally, hurtAndBreak also now checks if the player has infinite materials, e.g. is in creative mode, to prevent damaging the item. As such as filter is undesirable for API calls, this commit also skips this logic in case of an API invocation.
2024-06-04Handle alpha channel from potion_contents component (#10808)Lulu13022002
2024-06-04Make Bogged implement Shearable (#10844)Jake Potrebic
2024-06-04Add since to deprecated for removals (#10848)Jake Potrebic
2024-06-03Do not perform chunk existance check for I/O schedulingSpottedleaf
In order to check if a chunk exists, the RegionFile lock (if the RegionFile is opened) will be acquired. However, the RegionFile may be performing I/O operations, in which case will stall the acquire operation. To ensure that threads scheduling loads do not incur a stall, we can avoid this check entirely - the RegionFile I/O thread(s) will eventually perform the exist check itself.
2024-06-03Only assign blockstate data if super ctor did not (#10841)Bjarne Koll
The CraftBlockStateMeta constructor CraftBlockStateMeta(Map) invokes its parent constructor, which itself invokes deserializeInternal, which is implemented on CraftBlockStateMeta to read the components and block entity tag from the passed map. Field initialization happens after the call to the super constructor, meaning the current code overwrites the parsed internal data with the EMPTY defaults. This is prevented by moving the initialization into its own code block that can null check the fields prior to defaulting their value to EMPTY.
2024-06-03clarify what getEntityId actually returns (#10839)Jake Potrebic
2024-06-02Use RegistryOps in the correct places (#10843)Jake Potrebic
2024-06-01Fix CommandSourceStack#bypassSelectorPermissions (#10837)Bjarne Koll
The previous implementation would throw a command exception if the CommandSourceStack had its bypassSelectorPermissions flag set to true, which is the incorrect behaviour. Instead, it should only throw an exception if the flag is set to false and all its other checks "fail" too.
2024-05-31Fire TabCompleteEvent for legacy commands (#10834)Jake Potrebic
2024-05-30Add entity heal API (#10267)TotalledZebra
2024-05-30fix knockback events (#10831)Jake Potrebic
* fix knockback events * squash * handle cancelled event for explosions
2024-05-30Use CommandSourceStack in AsyncPlayerSendCommandsEvent (#10826)Jason Penilla
2024-05-30Fix sending disconnect packet in phases where it doesn't existShane Freeder
2024-05-29Deprecate InvAction#HOTBAR_MOVE_AND_READD (#10784)Jake Potrebic
2024-05-29Extend fishing API (#10634)SoSeDiK
Adds a missing fishing state when the fish is lured and fires an event for it. Also adds a way to control the fish swimming time towards the bobber.
2024-05-29Add registry-related argument types (#10770)Jake Potrebic
* Add registry-related argument types * fix tests
2024-05-29Several fixes and new api for experience merging/stacking (#9242)Jake Potrebic
2024-05-29Flatten namespaced vanilla command alias redirects (#10821)Bjarne Koll
The brigadier command dispatcher is not capable of executing commands that redirect more than one. The exemplary alias 'minecraft:tp' may hence not redirect to 'tp' it instead has to redirect to 'teleport' as 'tp' itself is merely a redirect.
2024-05-29Fix skipping custom block entity tag (#10812)Jake Potrebic
2024-05-29Allow firework effects with no colors (#10814)Jake Potrebic
2024-05-29Use RegistryOps for loadAdvancement (#10799)Jake Potrebic
2024-05-29handle BODY slot for non-mobs (#10822)Jake Potrebic
2024-05-29Fix max temper API for llama (#10823)Lulu13022002
2024-05-28[ci skip] Rebuild patches (#10803)Bjarne Koll
2024-05-28[ci skip] Clean up paperclip build-pr workflow (#10802)Bjarne Koll
2024-05-28Only remove worldgen block entity on changed block (#10794)Bjarne Koll
2024-05-27Fix missing debug traceShane Freeder
2024-05-27Fix Cancelling BlockPlaceEvent calling onRemove (#10773)Tamion
2024-05-26Prevent NPE if hooked entity was cleared (#10712)Jake Potrebic
2024-05-26Fix more item desync when an event is cancelled (#10654)Lulu13022002
2024-05-26Extend Player Interact cancellation to cover Jigsaw blocks (#10719)Cross
2024-05-26Fix BlockStateMeta equals (#10795)Jake Potrebic
2024-05-26Fix integer overflow for lag compensating eating check (#10797)Lulu13022002
2024-05-26fix and cleanup loot table patches (#10100)Jake Potrebic
* fix and cleanup loot table patches * fixes
2024-05-26Clear firework item properly (#10793)Lulu13022002
2024-05-26readd itemstack data sanitization (#10454)Jake Potrebic
* readd itemstack data sanitization * use autocloseable