Blu
15278e4e8a
added parameter for Block.Setter in the BlockPlacementRule
2025-01-16 17:12:07 +01:00
TheCodingDuck
b80c799750
fix: double sending of disconnect events ( #2594 )
2025-01-14 19:25:01 +10:00
mworzala
c96413678c
fix: do not try to re-resize while at max packet buffer size
2025-01-11 18:26:11 -05:00
Matt Worzala
55bcfaa07b
fix: clamp player position to prevent overflow issues ( #2587 )
2025-01-10 23:44:02 +00:00
UltraDev
a556e5a8f2
Skip size varint when reading single palette ( #2592 )
2025-01-10 16:29:32 -05:00
Kerman
1d0f512256
Adds STRING_IO_UTF8 to the network buffer ( #2583 )
...
This allows writing messages to the proxy easier. (not like they could have used a normal minecraft string)
2025-01-06 08:28:48 -05:00
mworzala
10d6d2bb2e
Revert "Fixed boundingBox.withOffset() ( #2488 )"
...
This reverts commit 18d6e0c6d6
, it was previously a breaking change that did not make a lot of sense, and broke other methods.
2025-01-04 11:40:03 -05:00
mworzala
07bd1c12b6
fix: really do not cast block state to short ( #2543 part 2)
2025-01-02 21:17:49 -05:00
Nex
4d3154b68c
Fix to issue #2470 ( #2576 )
...
* Calculates the squared distance from the player's eye position to the closest point on the entity's bounding box, this also improves the accuracy of interaction range enforcement (preventing interactions w/ entities outside the allowed range regardless of bounding box size)
* unit testing
* unit testing
2025-01-02 19:32:40 -05:00
mworzala
d8c5831f4e
fix: do not cast block state to short ( fixes #2543 )
2025-01-01 08:51:08 -05:00
mworzala
5174263f83
fix: make PlayerInfoUpdatePacket ComponentHolding for automatic translation ( fixes #2572 )
2025-01-01 08:46:55 -05:00
Leon
698af959c8
fix: synchronize item entity hitting ground to stop bouncing ( #2544 )
2024-12-29 16:10:32 +00:00
mworzala
719e14bd79
chore: better handle entities being removed in EntityProjectile
2024-12-29 09:58:33 -05:00
Matt Worzala
9803f2bfe3
chore: file registries ( #2538 )
2024-12-26 18:14:01 +00:00
mworzala
187931e50b
chore: broaden closed channel handling
2024-12-26 13:11:25 -05:00
Leon
2065f63f82
fix: ensure block is not in unloaded chunk in Player#canFitWithBoundingBox ( #2535 )
2024-12-23 07:46:44 -05:00
mworzala
c976f345d1
fix: bring back riptide option to item use events
2024-12-21 17:06:33 -05:00
mworzala
7b659f0fc3
fix: do not try to equip "body" equipment to players
2024-12-16 14:22:46 -05:00
mworzala
d707b0674f
fix: flipped equipmentslot ids ( fixes #2515 )
2024-12-16 10:19:50 -05:00
GoldenStack
989ed1b517
Last slot ID is exclusive, so include 8 ( #2523 )
2024-12-14 13:10:46 +00:00
Aeltumn
59d1d810e3
Fix re-registering vanilla registry objects not working properly ( #2522 )
...
Old implementation caused duplicate entries which causes a client protocol error
2024-12-14 08:07:58 -05:00
mworzala
11d7530dfc
fix: javadoc missing quote
2024-12-10 17:45:34 -05:00
GreatWyrm
4e93f469dc
Change Additional Hearts default to 0 instead of 1 ( #2517 )
2024-12-10 22:38:45 +00:00
GreatWyrm
f4da32d3fb
Replace wiki vg links with the Minecraft wiki links
2024-12-10 17:36:22 -05:00
GreatWyrm
39db19bdc5
Fix boat metadata, and prevent packet spam when riding a boat
2024-12-10 17:33:25 -05:00
mworzala
3088dac868
fix: item frame metadata index fix
2024-12-10 17:29:10 -05:00
mworzala
d760a60a5c
fix: keep ordering
2024-12-06 18:48:51 -05:00
mworzala
b09b141481
chore: rename and explanation changes
2024-12-06 18:48:51 -05:00
steank
749ade6786
chore: annotate EquipmentSlot#equipmentSlot as internal
2024-12-06 18:48:51 -05:00
steank
0668be90c5
fix: EquipmentSlot ordering was wrong for sending item components e.g. Equippable
2024-12-06 18:48:51 -05:00
steank
13d74663f1
fix: updating equipment would send the client the wrong item
2024-12-06 18:48:51 -05:00
mworzala
ccea53ac44
chore: update attributes on all item changes, allow item changes in use item events
2024-12-03 12:20:34 -05:00
mworzala
0412dbfffa
fix: handle server stop gracefully in PlayerSocketConnection
2024-12-03 11:42:59 -05:00
mworzala
53b7c2adf8
fix: update your own inventory not others 💀
2024-12-03 11:35:56 -05:00
mworzala
8953ff467e
feat: simplify item usage behavior ( fixes #2475 )
2024-12-03 10:45:16 -05:00
mworzala
1a63e48894
fix: correctly kick players and shutdown when stopping server ( fixes #2096 ) ( fixes #2480 )
2024-12-03 10:45:16 -05:00
mworzala
dfb1dda2cd
fix: correctly manage player inventory and window 0 slots in PlayerInventory. Add some more descriptions about client vs minestom slots in PlayerInventoryUtils
2024-12-03 10:45:16 -05:00
mworzala
2233ec8362
chore: vastly simplified recipe manager behavior
2024-12-03 10:45:16 -05:00
mworzala
c3a71ad10f
chore: wipe out existing recipe logic
2024-12-03 10:45:16 -05:00
mworzala
8dfe4a20c6
chore: support relative velocity in entity teleportation
2024-12-03 10:45:16 -05:00
GreatWyrm
c44fe9db46
Registry Updates (Villagers, Entity) ( #2465 )
...
* Add VillagerType and VillagerProfession generators and implementation, add a few new entity registry fields
* Fix NBT serialization and remove unused code
* Bump DataGen version and change VillagerType to GenericEnumGenerator
2024-12-03 10:45:16 -05:00
Leon
10e69be65e
Add brightness helpers for AbstractDisplayMeta ( #2493 )
2024-12-03 10:45:16 -05:00
MelonHell
01099597c0
Small fixes to MetadataDef ( #2476 )
2024-12-03 10:45:16 -05:00
mworzala
1cced68722
fix: updated place ghost recipe packet
2024-12-03 10:45:16 -05:00
MelonHell
f4b32eddcf
Rewritten all EntityMeta classes to use MetadataDef ( #2471 )
...
* Rewritten all EntityMeta classes to use MetadataDef
* fix MetadataHolder.set
* remove getIndex and setIndex from SheepMeta
* MetadataDef.Wolf.VARIANT
* removed MetadataHolder.getIndex and MetadataHolder.setIndex
* Added "FLAGS" to all MetadataDef with flags
* made bitMask byte instead of int
* renamed ALIGNMENT_LEFT and ALIGNMENT_RIGHT to ALIGN_LEFT and ALIGN_RIGHT
* ByteMask type and fixed Sheep.COLOR_ID
2024-12-03 10:45:16 -05:00
mworzala
de83afc8d8
fix: update Potion to match protocol spec (int amplifier) ( fixes #2474 )
2024-12-03 10:45:16 -05:00
mworzala
4b129d8c01
fix: InventoryPreClickEvent#getInventory should still be nullable
2024-12-03 10:45:16 -05:00
mworzala
9f8e0f0222
fix: mark inventory closed before removing viewer to correctly send close packet
2024-12-03 10:45:16 -05:00
mworzala
ef18364f32
fix: use byte for firework list nbt type to match mojang serializer
2024-12-03 10:45:16 -05:00
MelonHell
e6781cd3fa
Ability to get registry packets without MinecraftServer ( #2469 )
...
* Ability to get registry packets without MinecraftServer
* review fixes
2024-12-03 10:45:16 -05:00