Bridge
254ed14dc9
Prevent profile lookups when unnecessary ( #10651 )
2024-05-05 19:07:30 +02:00
Tamion
548fa24c1e
Fix EntityLoadCrossbowEvent ( #10645 )
...
* fix
* hehe
2024-05-05 18:54:04 +02:00
Lulu13022002
1465288208
[ci skip] Update old particle reference in javadoc ( #10652 )
2024-05-05 18:44:06 +02:00
NonSwag
b5d6fdee48
Add missing SpigotConfig logCommands check ( #10659 )
2024-05-05 18:41:02 +02:00
Nostal Yuu
de6967e549
Added API to get player's proxy address ( #10400 )
2024-05-06 00:39:32 +08:00
Jake Potrebic
838bab409e
Updated Upstream (CraftBukkit) ( #10646 )
...
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:
66fd94322 SPIGOT-7652: Remove remap for SPELL_MOB_AMBIENT which no longer exists
ecfa4f973 SPIGOT-7654: ItemStack#isSimilar does not work with empty BlockStateMeta
4460ecc49 SPIGOT-7655: ItemMeta#addItemFlags(ItemFlag.HIDE_ATTRIBUTES) not working when no attribute modifiers set
5d84f48a4 SPIGOT-7653: Update ApiVersion.CURRENT with latest version and include tests
2024-05-05 09:08:55 -07:00
Lulu13022002
b94c74495e
Add missing experimental field and annotations ( #10653 )
2024-05-05 18:00:54 +02:00
Bjarne Koll
252c489f15
Keep components using single items in creative ( #10664 )
...
The craftbukkit implementation stores the old and new data patch of an
item during ItemStack#useOn(UseOnContext) to properly cancel events via
comparison and change detection of the component patch.
However, it uses #getComponentsPatch to fetch the new stack component
patch, which always yields an empty patch set if an itemstack is
considered empty by the game.
As the restoration of an itemstack's count to its previous state is
handled after the entire ItemStack#useOn method, items used in creative
mode temporarily have a count of zero, which causes craftbukkit to
consider their new component patch as EMPTY even tho said item may have
data.
The new patch is applied and, after useOn completes, the count is reset
if the player is in creative mode, leading to lost data.
This commit fixes said inconsistency by directly accessing the
components of the item via components#asPatch, storing the proper
component patch even for an item that temporarily has a count of zero.
2024-05-05 11:40:36 +02:00
Jake Potrebic
f51bdcf978
fix shear drops for wolf and bogged
...
Fixes #10661
2024-05-04 22:48:06 -07:00
Nassim Jahnke
7b2ce17e23
Add missing step in V3818
2024-05-04 22:49:48 +02:00
Jake Potrebic
4473bf06e0
add RegistryAccess for managing registries ( #10154 )
...
* add RegistryAccess for managing registries
* add missing types to key data generator
* fix some stuff
* Add RegistryKeys for all other non-server-backed registries
* fix tests
* remove Experimental annotations
2024-05-04 11:22:35 -07:00
Joseph Burton
128ea2f10b
Fix lodestone compass target conversion
2024-05-04 12:58:06 +02:00
Joseph Burton
4a8b9a03eb
Fix can_place_on conversion and size check for item containers
2024-05-02 20:23:15 +02:00
Shane Freeder
a8e49a12d3
default save-empty-scoreboard-teams to vanilla
...
The primary environmental factor which caused this feature to be implemented
is no longer much of a factor within the community
2024-05-02 09:53:43 +01:00
SoSeDiK
a56d850e4b
Expose #hasColor to leather armor ( #10638 )
2024-05-01 20:14:42 +03:00
SoSeDiK
71c03637bf
Add EquipmentSlot#getOppositeHand ( #10632 )
2024-05-01 20:14:27 +03:00
SoSeDiK
6ad89448b8
Add GameMode#isInvulnerable ( #10633 )
2024-05-01 20:14:17 +03:00
Nassim Jahnke
9432b19638
Update Java version references, add note on var usages
2024-05-01 18:44:17 +02:00
Andrew Teeter
f1693652c8
Add damage check for mending ( #10631 )
2024-05-01 06:01:48 -04:00
SoSeDiK
58e7ac939f
Expose canReach to mob pathfinding API ( #10636 )
2024-05-01 13:00:11 +03:00
Jake Potrebic
61a36373c0
Fixes beds not exploding in the nether
...
Also correctly marks the captured BlockState as "unplaced"
Fixes #10629
2024-04-30 16:42:43 -07:00
Nassim Jahnke
f97bdb1894
Add initial size cap to component map
2024-04-30 11:14:20 +02:00
Jason Penilla
ec006b59bb
Fix sealed package check in BytecodeModifyingURLClassLoader ( #10627 )
2024-04-30 01:21:16 -07:00
Jake Potrebic
ff22570edc
fix dumpitem command nbt format
...
use the snbt visitor instead of plain string
2024-04-29 18:49:19 -07:00
Jake Potrebic
9db4ebd3f1
fix spawnChunkRadius gamerule resetting
...
Fixes #10622
2024-04-29 15:22:29 -07:00
Noah van der Aa
723528c18b
1.20.6 ( #10623 )
2024-04-30 00:16:07 +02:00
Bjarne Koll
e136fada5d
Validate manifest provided mapping namespace ( #10612 )
...
With plugins adopting paperweights mapping namespaces in their manifest
file in and after paper 1.20.5, incorrectly spelled namespaces
previously were simply implied as the spigot namespace.
This commit properly ensures plugin authors are using a known mapping
namespace in their manifest, avoiding down the line confusion on
incorrect remapping behaviour.
The commit also fixes two incorrect log parameters.
2024-04-29 05:43:50 +02:00
Jake Potrebic
74b2f39f80
Fix incorrect Commodore mapping of sweeping enchant
2024-04-28 17:25:21 -07:00
Jake Potrebic
9987c3cb96
Reset component prototype on itemtype change
2024-04-28 17:13:30 -07:00
Jason Penilla
c82479dc52
Remap plugin libraries with namespace set to spigot ( #10610 )
...
* Remap plugin libraries with namespace set to spigot
* Remap plugin libraries with namespace set to spigot
2024-04-28 14:55:10 -07:00
Jason Penilla
32ad479664
Rewrite reflection in library loader jars ( #10608 )
...
* Rewrite reflection in library loader jars
* Address todos
2024-04-28 13:14:10 -07:00
Jake Potrebic
b10448ebda
Fix CraftMetaBlockState adding extra tags
2024-04-28 12:34:11 -07:00
Shane Freeder
f4303373e1
Add itemName components ( Resolves #10467 ) ( #10471 )
...
* Add itemName components (Resolves ##10467)
* improve javadocs and formatting
* rebased
---------
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2024-04-28 18:08:59 +01:00
Jake Potrebic
819639770e
final missing validation for data components
2024-04-28 09:46:30 -07:00
Nassim Jahnke
cbb35324c1
Fix overly strong name validation in player heads
...
Closes #10477
2024-04-28 18:25:20 +02:00
Jake Potrebic
c45369311e
respect hard list size limits in ItemMeta
2024-04-28 09:06:14 -07:00
Nassim Jahnke
2355f31613
Don't hard fail on plugin remap error
...
Closes #10474
2024-04-28 17:25:31 +02:00
Jake Potrebic
da3ca7a40d
Fix issue with empty lists in adventure predicates
...
Fixes #10473
2024-04-28 08:22:16 -07:00
Shane Freeder
36fa573f48
Fix another missing book meta tag
2024-04-28 13:48:20 +01:00
Shane Freeder
4aab51d78a
Fix book meta lacking resolved tag from older versions ( Fixes #10470 )
2024-04-28 13:15:03 +01:00
Nassim Jahnke
7ffc581d32
Fix test compilation
2024-04-28 14:20:52 +02:00
Jake Potrebic
c6bdd67d28
more fixes for ItemMeta relating to components
2024-04-27 22:27:51 -07:00
Jake Potrebic
c534b3e0ea
Fix firework meta NPE
...
Fixes #10466
2024-04-27 20:57:42 -07:00
caramel
d1a11cca31
Fix the incorrect codec usage in the Style convert ( #10465 )
2024-04-28 12:32:11 +09:00
Jason Penilla
0b9087f4b8
Only scan org.bukkit.craftbukkit.inventory
in MetaHandledTagsTest
...
fixes tests OOMing
2024-04-27 18:25:15 -07:00
Jake Potrebic
57a40dbdd3
remove calls to DoNotUse methods
2024-04-27 18:18:20 -07:00
Jake Potrebic
dcbe8f75f2
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:
304e83eb PR-1002: Improve documentation and implementation of getMaxStackSize
e8215ea2 SPIGOT-7638: Library loader does not seem to resolve every dependency
79c595c0 SPIGOT-7637: Bad logic in checking nullability of AttributeModifier slots
CraftBukkit Changes:
91b1fc3f1 SPIGOT-7644: Fix ItemMeta#getAsString
4e77a81e1 SPIGOT-7615: PlayerLeashEntityEvent cancelled eats lead
996f660f3 Do not remove leash knot if leasing to an existing leash knot gets cancelled
f70367d42 SPIGOT-7643: Fix inverted leash event cancelled usage and remove leash knot if no entity gets leashed
7ddb48294 SPIGOT-7640: Abnormal jumping height of wind charge
080c8711e SPIGOT-7639: Incoming plugin channels not working
ad549847e Open a direct connection instead of pinging mojang server to check if it is reachable
38e2926c5 SPIGOT-7365: DamageCause blocked by shield should trigger invulnerableTime
2024-04-27 18:00:01 -07:00
Jake Potrebic
25e7f94c2a
fix last test issue
2024-04-27 17:45:30 -07:00
Jake Potrebic
663c8a772f
Fix issue with hopppers
...
Fixes #10464
2024-04-27 17:31:32 -07:00
Jake Potrebic
9230c67a88
improve checking handled tags in itemmeta ( #9470 )
2024-04-27 17:33:17 -07:00
Jason Penilla
a7e0798f78
Use JetBrains runtime for run tasks
...
allows for better runtime class redefinition
closes #10459
2024-04-27 17:27:32 -07:00
Nassim Jahnke
c4adb2b7c7
Temporarily comment out adventure jd links
2024-04-28 02:05:52 +02:00
Jake Potrebic
c0b22957f5
proper migration to gamerules for keep spawn loaded distance
2024-04-27 15:50:33 -07:00
Nassim Jahnke
942ac65c39
Fix bad diff in build gradle file
2024-04-28 00:43:17 +02:00
Jake Potrebic
31eecaee4a
Revert to vanilla handling of LivingEntity#actuallyHurt ( #10463 )
2024-04-27 14:35:53 -07:00
Jake Potrebic
4b762a6259
more ItemFlag fixes
2024-04-27 14:32:14 -07:00
Jason Penilla
ed3f76d3a5
remove funny diff
2024-04-27 14:11:35 -07:00
Jason Penilla
bf6862b141
Move cb version definition to gradle patch
2024-04-27 14:02:33 -07:00
Jason Penilla
e20beef9c7
Move obfhelper/stack deobf diff into original patch
2024-04-27 13:53:56 -07:00
Lulu13022002
e0adb01ddc
update generator
2024-04-27 22:30:15 +02:00
Jason Penilla
9f60650248
Bump adventure ansi serializer
2024-04-27 13:31:37 -07:00
Jason Penilla
a97258b9ee
Start cleaning up plugin remapping patches
2024-04-27 13:27:01 -07:00
Lulu13022002
ba5fe77f0f
fix helmet damage reduction inconsistencies
...
See: https://github.com/PaperMC/Paper/issues/9555#issuecomment-1681120506
2024-04-27 21:56:29 +02:00
Lulu13022002
9c0da4515d
fix PotionEffectType#getEffectAttributes
2024-04-27 21:48:14 +02:00
Spottedleaf
a0c2ebbdd4
Update DataConverter to 1.20.6-rc1
...
Fixes trader llama inventory incorrectly converting
2024-04-27 12:39:35 -07:00
Jake Potrebic
cdeb62baac
fix item flags
2024-04-27 12:17:58 -07:00
Jason Penilla
43b52c8d61
Unify plugin remapping debug flags
2024-04-27 11:41:56 -07:00
Shane Freeder
4f09300744
Restore Handle Large Packets Disconnecting Client Patch
2024-04-27 15:06:52 +01:00
Jake Potrebic
e600a4de22
improve dumpitem and pgive commands
2024-04-26 23:57:49 -07:00
Jake Potrebic
cafa0f3267
bunch of fixes and improvements
2024-04-26 23:17:58 -07:00
Jake Potrebic
77e87218b9
add back hunk to async SavedData IO
2024-04-26 19:33:30 -07:00
Jake Potrebic
1bcdad0118
more fixes
2024-04-26 19:09:42 -07:00
Jake Potrebic
36445ba659
add back missing call to profile fill events
2024-04-26 18:41:54 -07:00
Jake Potrebic
d575d43c03
fix adventure converters not using RegistryOps
2024-04-26 18:16:31 -07:00
Jake Potrebic
b1f19f295c
fix enchantment order issue
2024-04-26 18:06:35 -07:00
Jake Potrebic
f0911d4f2d
readd old UUID format patch
2024-04-26 17:41:36 -07:00
Jake Potrebic
a9b6792b11
fix javadocs for SpawnerEntry$Equipment API
2024-04-26 17:00:26 -07:00
Jake Potrebic
5a55c71491
deprecate our ItemRarity API
2024-04-26 16:43:59 -07:00
Jake Potrebic
d0db132328
fix custom potion mixes
2024-04-26 16:17:13 -07:00
Jake Potrebic
f673d54842
fix exact choice recipes
2024-04-26 15:25:20 -07:00
Jake Potrebic
6ba0e1048f
fix adventure translations
2024-04-26 15:08:35 -07:00
Jason Penilla
8cb49c8d67
Update paper plugin check in PluginRemapper
2024-04-26 14:31:45 -07:00
Jake Potrebic
15221cd4ac
remove no longer needed patches and fix tests
2024-04-26 14:29:16 -07:00
Jason Penilla
6bfa9ce2b1
Update patched spigot decompiler to fix inconsistency based on processing order
2024-04-26 11:42:17 -07:00
Jake Potrebic
0cd4c50623
fix some more issues
2024-04-26 11:39:20 -07:00
Jake Potrebic
a55b0c8097
fix some issues on the todo list
2024-04-26 09:22:55 -07:00
Jake Potrebic
8a37019dc2
fix chat_type issue
2024-04-26 08:33:00 -07:00
Owen1212055
fca0167880
Drop old decompile fix
2024-04-26 08:39:10 -04:00
Nassim Jahnke
deba816f30
Fix accumulated total ticking chunks not being updated
2024-04-26 11:55:56 +02:00
Nassim Jahnke
c0ac50971d
Fix light setting in protochunk
2024-04-26 11:12:19 +02:00
Nassim Jahnke
335f485dd4
Fix compile issues
2024-04-26 10:45:00 +02:00
Jake Potrebic
5c514dd900
support patch versions in api-version
2024-04-25 23:29:16 -07:00
Jason Penilla
898fa27a8f
plugin manager updates
2024-04-25 23:17:15 -07:00
Jake Potrebic
c9e0e1f9f3
fix issue with item default attribute API
2024-04-25 23:10:38 -07:00
Jake Potrebic
e5628d4fc7
fixup loom pattern select event patch
2024-04-25 22:44:49 -07:00
Jason Penilla
e66d823dc3
hunk system fixes
2024-04-25 22:25:02 -07:00
Jason Penilla
3606096fbb
compile fixes
2024-04-25 21:27:19 -07:00
Jason Penilla
af2e3abf87
compile fixes
2024-04-25 20:15:07 -07:00
Jason Penilla
9c8593cb14
compile fixes
2024-04-25 19:54:07 -07:00
Jason Penilla
ce02863322
generator fix
2024-04-25 19:09:21 -07:00