Nassim Jahnke
a939945148
Fixup sendAllDataToRemote calls
...
Reduces unnecessary item copies by a lot
2025-07-11 17:43:05 +02:00
Nassim Jahnke
4d854e66b8
Disable MC-163962 fix by default
...
It changes restocking behavior pretty drastically compared to Vanilla, keep it as a config option for those that want it
Fixes #12761
2025-06-30 11:39:07 +02:00
Owen
0caf75f839
Fix #12721 ( #12725 )
...
* Fix #12721
Track when knots are created and only fire the event then
* Use mutable boolean + check if actually spawned
2025-06-25 14:16:03 -04:00
Bjarne Koll
a24f9b204c
1.21.6 dev
...
Co-authored-by: Bjarne Koll <git@lynxplay.dev >
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com >
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com >
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com >
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com >
Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com >
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com >
2025-06-17 15:45:25 +02:00
Newwind
84ee4249c9
Add Map filled event ( #12574 )
2025-05-24 22:45:32 +02:00
Pedro
cc38032bee
Deprecate TeleportCause CHORUS_FRUIT for CONSUMABLE_EFFECT ( #12546 )
2025-05-18 16:33:21 +02:00
Pedro
841d634230
Fix ItemStack#addUnsafeEnchantment ignored for missing enchantment component ( #12549 )
2025-05-17 16:13:08 +02:00
TonytheMacaroni
1074237311
Pass correct draw strength for EntityShootBowEvent ( #12308 )
2025-05-02 16:05:50 -04:00
Bjarne Koll
b9d3147d3b
Use correct placed block position for sound ( #12410 )
...
Previously the server attempted to compute the block placed by using the
BlockPlaceContext. This approach however fails on replacable blocks, as
the BlockPlaceContext computes this during its construction, which
happened after the actual world modification.
The commit reworks this approach and now stores metadata in the
InteractionResult which can later be read.
The diff is structured to allow for easy future expansion of the tracked
metadata.
2025-04-27 14:19:42 +02:00
Nassim Jahnke
f00727c57e
1.21.5
...
Co-authored-by: Bjarne Koll <git@lynxplay.dev >
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com >
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com >
Co-authored-by: MiniDigger | Martin <admin@minidigger.dev >
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev >
Co-authored-by: Noah van der Aa <ndvdaa@gmail.com >
Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com >
Co-authored-by: Shane Freeder <theboyetronic@gmail.com >
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com >
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com >
Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com >
2025-04-12 17:27:00 +02:00
Nassim Jahnke
9f00461456
Update a whole lot of deprecated annotations
2025-03-21 17:50:04 +01:00
Pedro
f0388e2f38
Call EntityPushedByEntityAttackEvent for Mace AoE ( #12257 )
2025-03-12 11:13:47 +01:00
Lulu13022002
2565497897
Cancel PlayerLaunchProjectileEvent properly for enderpearls ( #12223 )
2025-03-08 17:02:10 -05:00
Vincenzo Reina
5538d24d72
Fix "DEFAULT" SpawnReason of fish spawned by bucket ( #12227 )
...
* Add SpawnReason "Bucket". Fix "DEFAULT" SpawnReason for entity spawning from mob bucket
* Clarify SpawnReason description for bucket entity spawning
2025-03-05 13:28:25 +01:00
Warrior
f63dbeafde
Fix cancelled HangingPlaceEvent inventory desync ( #12161 )
2025-02-25 22:33:35 +01:00
Nassim Jahnke
f12d33f04e
Track codec writing
2025-02-25 21:45:02 +01:00
bonan
e5a8ee849f
Hide soul speed particles for vanished players ( #12152 )
...
Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com >
2025-02-21 12:02:32 +01:00
Emilia Kond
5e2a3bc0e2
Call EntityChangeBlockEvent with correct block when waxing ( #12154 )
2025-02-20 10:46:11 +01:00
Chaosdave34
b9023b5dc3
Add EntityAttemptSmashAttackEvent ( #12113 )
2025-02-16 20:19:28 +01:00
Tamion
ab1b312064
Call PlayerItemDamageEvent for tridents ( #11899 )
2025-01-12 15:29:52 -08:00
Pedro
ad74b673fa
Fix client visual desync if cooldown events are cancelled ( #11892 )
2025-01-12 22:56:11 +01:00
Tamion
19ddbeff9e
Fix InventoryAction wrong for Bundles ( #11902 )
2025-01-11 19:50:24 +01:00
Owen
ea7b961926
Fix MapItem incorectly fetching water biomes on treasure maps ( #11936 )
2025-01-11 10:49:31 +01:00
Owen
55f3f280cb
Reimplement ItemStack Obfuscation ( #11817 )
...
Reimplementation of the itemstack obfuscation config that
leverages the component patch map codec to drop
unwanted components on items or replaces them with
sanitized versions.
Co-authored-by: Bjarne Koll <git@lynxplay.dev >
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com >
2025-01-09 18:58:18 +01:00
Tamion
9f90b4c324
Fix ItemDamageEvents called for 0 damage ( #11900 )
2025-01-04 21:54:40 +01:00
Kobe ⑧
793d36106d
Fix recipe book items order ( #11787 )
2024-12-23 18:09:12 +01:00
Nassim Jahnke
70ef43b8dd
More cleanup of var names
2024-12-21 15:53:00 +01:00
Lulu13022002
1f86b55302
reapply SummonEntityEffect
2024-12-19 21:29:31 +01:00
Lulu13022002
5922e6334b
fix allowPermanentBlockBreakExploits config
2024-12-18 23:35:47 +01:00
Lulu13022002
6126012369
readd beacon effect cause
2024-12-18 19:29:39 +01:00
Nassim Jahnke
7caf863b52
Small diff cleanups from patch updating
...
And remove a dumb log change in PacketEncoder
2024-12-17 16:50:59 +01:00
Jake Potrebic
4cc2be301d
it compiles?
2024-12-15 14:36:05 -08:00
Lulu13022002
ec57b99bf5
readd removal cause for thrown eggs
2024-12-15 23:07:15 +01:00
Lulu13022002
ac9ac5e7ea
readd debugstick check
2024-12-15 15:55:13 +01:00
Lulu13022002
9346db2844
readd blockitem diff
2024-12-15 15:26:23 +01:00
Jake Potrebic
172a80cb66
Somehow a bunch of items were missed
2024-12-14 22:35:35 -08:00
Jake Potrebic
630c815714
net.minecraft.world.item.trading
2024-12-14 14:45:10 -08:00
Jake Potrebic
31913c0b0a
net.minecraft.world.item
2024-12-14 12:50:23 -08:00
Jake Potrebic
db81fd3455
net.minecraft.world.item.crafting
2024-12-14 10:07:55 -08:00
Noah van der Aa
52d26db5a0
net.minecraft.world.item.consume_effects
2024-12-14 18:44:19 +01:00
Lulu13022002
d7eab570bd
components
2024-12-14 18:41:16 +01:00
Noah van der Aa
5eb4ceb6a4
net.minecraft.world.item.enchantment
2024-12-14 14:40:36 +01:00
Jake Potrebic
fe1744dfd1
net.minecraft.world.item.alchemy
2024-12-13 16:02:20 -08:00
Nassim Jahnke
aa998246f7
More work
2024-12-13 18:40:56 +01:00
Nassim Jahnke
45ddf764d9
Move patches to unapplied
2024-12-12 12:30:31 +01:00
Owen1212055
d300c94ec2
Properly resend entities
...
This resolves some issues which caused entities to not be resent correctly.
Entities that are interacted with need to be resent to the client, so we resend all the entity
data to the player whilst making sure not to clear dirty entries from the tracker. This makes
sure that values will be correctly updated to other players.
This also adds utilities to aid in further preventing entity desyncs.
This also also fixes the bug causing cancelling PlayerInteractEvent to cause items to continue
to be used despite being cancelled on the server.
For example, items being consumed but never finishing, shields being put up, etc.
The underlying issue of this is that the client modifies their synced data values,
and so we have to (forcibly) resend them in order for the client to reset their using item state.
See: https://github.com/PaperMC/Paper/pull/1896
== AT ==
public net.minecraft.server.level.ChunkMap$TrackedEntity serverEntity
2022-12-07 17:25:19 -05:00
Jake Potrebic
9467a08b36
Improve performance of RecipeMap#removeRecipe
2024-10-31 20:36:41 -07:00
masmc05
1cd7fd4eec
Item serialization as json
2024-08-11 03:01:52 +03:00
Tamion
276e09c3b0
Fix cancelling BlockPlaceEvent calling onRemove
2024-05-23 11:02:20 +02:00
Jake Potrebic
5d843f3120
Fix issues with Recipe API
2024-05-12 15:49:36 -07:00