Commit Graph

8813 Commits

Author SHA1 Message Date
Jake Potrebic 046bbf8a74 add some generated typed/tag keys 2024-06-15 15:52:14 -07:00
Spottedleaf f679845d59 Remove unnecessary changes from chunk status fix 2024-06-15 15:31:04 -07:00
Bjarne Koll a2c7a9b490 Deprecate BlockData#getDestroySpeed for removal
The method sadly is not usable in 1.21 without a player as all of an
enchantments attribtue modifiers rely on a base value supplied by a
player. The method could only offer a rough estimate based on some
default values, however a better method for this should be added down
the line rather than trying to force such logic into the existing one.
2024-06-16 00:19:10 +02:00
Bjarne Koll 26f246b908 Properly forward DispenseEvent #getItem to saddle
Correctly use the DispenseEvent's #getItem ItemStack when placing the
saddle on entities during a dispense behaviour instead of the original
stack.
2024-06-16 00:01:55 +02:00
Bjarne Koll cffcda2bc7 Configurable damage tick when blocking with shield (#10877)
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-15 23:09:34 +02:00
Aya 87aea64a44 Add back RecipeIterator fixes patch (#10887) 2024-06-15 20:49:08 +01:00
Jake Potrebic 80cb0a621b correctly change enchantment registry to a 'delayed' version 2024-06-15 12:04:06 -07:00
Nassim Jahnke 3a74801788 Fix max chunk status checks 2024-06-15 19:57:59 +02:00
Nassim Jahnke b81fffb934 Add back more optimization patches 2024-06-15 19:24:11 +02:00
Bjarne Koll 128085ba3e Improve enchantWithLevels logic
Previously would stream and optionally filter out all entries in the
enchantment registry.
Moves it to using the empty optional if treasure is allowed, leaving the
logic to EnchantmentHelper.
2024-06-15 19:08:11 +02:00
Nassim Jahnke 967ee0c7b1 Merge remote-tracking branch 'origin/dev/1.21' into dev/1.21 2024-06-15 18:52:19 +02:00
Bjarne Koll 22595ec4c0 Revert DamageSource#getCausingEntity to vanilla 2024-06-15 18:39:55 +02:00
Nassim Jahnke efb91589dc 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:
e2160a18 Make MapCursor#type not depends on deprecated values

CraftBukkit Changes:
6ce172642 SPIGOT-7761: Ender pearl does not damage or spawn endermites
f5a63f734 SPIGOT-7759: Chunk not there when requested in ChunkUnloadEvent
28287259c Remove unused import
eb9a7dde0 SPIGOT-7757: Cannot set item in Stonecutter Inventory
f8be9d752 Move deserialized removed unhandled tags to dedicated removedTags
a7e576186 Fix potential mutability issue with CraftMetaItem copy constructor
995885452 SPIGOT-7741: Vanilla ItemComponent in commands can't remove components
9ef69aa0b PR-1284: Move ItemType <-> ItemMeta linking to a centralized place
3e82eafbe PR-1420: Fix DirectEntity and CausingEntity Damager for Creepers ignited by Player
c23daa71f SPIGOT-7751: Fix crash caused by arrows from trial spawners
Make MapCursor#type not depends on deprecated values
SPIGOT-7761: Ender pearl does not damage or spawn endermites
2024-06-15 18:28:18 +02:00
Ghast 4c472e3401 Fix ItemMeta#removeEnchantments (#10886) 2024-06-15 17:26:55 +02:00
Jake Potrebic 87f8c7ca9b Fix Player#sendBlockState (#10855) 2024-06-15 08:05:21 -07:00
Jake Potrebic 2053f3bd83 Update AbstractArrow item method implementations for 1.20.6 (#10885) 2024-06-15 16:40:29 +02:00
Nassim Jahnke 9b3cf41d7a Update more optimization patches 2024-06-15 14:12:22 +02:00
Jason Penilla 67537d99b4 Bump tiny-remapper to 0.10.3
Fixes warnings when using some java 21 features
2024-06-14 21:44:18 -07:00
Jason Penilla 0c4a531524 Update Gradle Wrapper to v8.8 2024-06-14 17:53:11 -07:00
Spottedleaf fddfa624cf Chunk System and Starlight WIP
Chunk system patch was refactored to take advantage of
newer ConcurrentUtil's concurrent long hash table (which
fixes hash collisions caused by chaining fastutil's long hash
and CHM's hash) plus some other minor improvements.

The chunk system was also merged with Starlight, which mostly
provides a small improvement to ThreadedLevelLightEngine#checkBlock
as the scheduling was rewritten.
2024-06-14 17:19:25 -07:00
Jake Potrebic 9b34dc14d9 remove api that was scheduled for removal 2024-06-14 14:07:44 -07:00
Jake Potrebic abbb7415bd remove old vanilla goals 2024-06-14 13:38:42 -07:00
Jake Potrebic f7118d4e22 update generated API 2024-06-14 13:11:23 -07:00
Spottedleaf 2bfea35de3 Update ConcurrentUtil
Mostly for the primitive long to reference hashtable impl
2024-06-14 10:47:33 -07:00
Spottedleaf 6b1346c1f6 DataConverter 1.21 2024-06-14 10:34:45 -07:00
Spottedleaf e9068d28c6 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:
befcf86d SPIGOT-7740: Fix using new map cursor types
09229095 Add EntityDamageEvent.DamageCause#CAMPFIRE

CraftBukkit Changes:
a1d2cd152 SPIGOT-7747: Mob head is not dropped when mob was blown up by a charged creeper
8078294bc SPIGOT-7746: Server Crashing when Players Getting into End Portals
8d842e250 SPIGOT-7744: Fix exception for shooting projectiles with flame enchantment
64e0ad129 SPIGOT-7744: Fix crash when shooting arrows in creative mode
819f7a10a Fix player items not dropping on death
0a0229bb5 Implement DamageCause#CAMPFIRE and minor improvement in exception for Unhandled block damage
2024-06-14 10:15:52 -07:00
Nassim Jahnke 3f581a6024 Fix body equipmentslot and effect enum 2024-06-14 18:53:32 +02:00
Nassim Jahnke 1aee096320 Fixup and deprecate player profiles in ping event
The player sample uses game profile internally, but discards everything but the name and uuid and does not follow player profile restrictions, so it doesn't make sense to use that in the event.
2024-06-14 18:14:55 +02:00
Nassim Jahnke 201427a880 Make it compile 2024-06-14 18:02:15 +02:00
Bjarne Koll 492de57f77 Adopt previous commit changes in API 2024-06-14 16:02:59 +02:00
Bjarne Koll f548e7fbd5 Some work on the ItemMend events 2024-06-14 16:01:00 +02:00
Bjarne Koll be8b9314b4 Pretend to fix compile errors 2024-06-14 15:16:29 +02:00
Nassim Jahnke d29210d668 Fix more compile issues 2024-06-14 14:28:06 +02:00
Nassim Jahnke bcdf841f2d Fix more compile issues 2024-06-14 14:11:52 +02:00
Nassim Jahnke 9206b1ea14 Fix a few compile errors 2024-06-14 13:07:50 +02:00
Bjarne Koll 7289589315 988 2024-06-14 11:59:44 +02:00
Bjarne Koll 8a6e31ec59 960 2024-06-14 11:07:50 +02:00
Bjarne Koll 2b73df0fd7 956 2024-06-14 10:56:28 +02:00
Bjarne Koll 4eaa335676 922 2024-06-14 10:17:11 +02:00
Jason Penilla 0785c29a37 update some patches 2024-06-13 20:41:44 -07:00
Jake Potrebic a0f4d303eb 788/1053 2024-06-13 18:30:23 -07:00
Jake Potrebic 4ff15b38e5 650/1053 2024-06-13 17:08:12 -07:00
Jake Potrebic dfa326fc2f 585/1053 2024-06-13 16:32:45 -07:00
Bjarne Koll e0f5e2a1d5 538 2024-06-14 00:44:26 +02:00
Jake Potrebic 02d989b548 531/1053 2024-06-13 14:42:02 -07:00
Jake Potrebic 29e69c49da 487/1053 2024-06-13 13:57:13 -07:00
Jake Potrebic 7bcc1a4674 385 2024-06-13 13:14:13 -07:00
Jake Potrebic e07671b7df 279 2024-06-13 12:04:27 -07:00
Jake Potrebic 9120ce5d4b 194 2024-06-13 11:09:28 -07:00
Jake Potrebic 6a05c85176 117 2024-06-13 10:30:39 -07:00