Commit Graph

5906 Commits

Author SHA1 Message Date
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
MelonHell
5f7ac6fb72 public MetadataHolder.createMeta (#2468)
* public MetadataHolder.createMeta

* annotations
2024-12-03 10:45:16 -05:00
GreatWyrm
31652f9438 Fix damage invulnerablity checks (#2467)
* Fix damage invulnerablity checks

* Clean up immune check
2024-12-03 10:45:16 -05:00
GreatWyrm
0ca31db4ae Update Inventory test and sending (#2463)
* Update Inventory test and sending

* Remove unused imports

* Remove testing tracker

* Fix off-by-one error in the Check.argCondition
2024-12-03 10:45:16 -05:00
mworzala
d8a26b977b chore: rebase fix 2024-12-03 10:45:16 -05:00
mworzala
2ae8986ff9 fix: do not allow fetching cookies inside the PlayerProvider, kick player in some login failure cases 2024-12-03 10:45:16 -05:00
mworzala
2df89f23c9 fix: make new packets ComponentHolding 2024-12-03 10:45:16 -05:00
mworzala
b7d89c84a7 fix: update to use new player inventory slot packet and dedicated cursor item packet 2024-12-03 10:45:16 -05:00
mworzala
87a662cfcb fix: javadoc patch 2024-12-03 10:45:16 -05:00
mworzala
685dd152b7 fix: change state before processing packet for state boundary packets
Fixes an issue where disconnects during the first phase of login would write a DisconnectPacket instead of LoginDisconnectPacket because the state was not yet updated to be login from handshake.
2024-12-03 10:45:16 -05:00
mworzala
03856ccc21 chore: test fixes for 1.21.2 2024-12-03 10:45:16 -05:00
MelonHell
b0ff6941d6 Removed permissions (#2302) 2024-12-03 10:45:16 -05:00
Lorenz Wrobel
202889b854 Fix Instamine (#2340)
* use custom data generator - change back to official when done

* initial calculation

* use submerged mining speed attribute

* use ticks instead of seconds as calculation result

* attribute command

* testinstabreak command

* add Tag.toString(), don't know why this isn't added yet

* update method name to reflect field

* update and fix calculation

* actually use calculation in PlayerDiggingListener

* some logging for testing, gotta remove later

* remove FIXME comment, mineable should be handled correctly by calculation and enchantments don't affect the calculation, only attributes do.

* player.isInstantBreak() is included in calculation

* more + better testing logging

* add break block logging

* use GameMode.CREATIVE instead of isInstantBreak as check. isInstantBreak is named poorly, doesn't do what you'd expect

* fix typo

* bamboo test

* support bamboo

* sanity check when finishing digging

* me dumb

* anvil inventory for testing instabreak ability

* remove early GameMode check, included in calculation

* add stone to testing command

* add bamboo reason comment

* update data generator to rv4

* remove aqua affinity check

* remove logging

* add wiki link

* remove logging

* remove blank newline

* better name

* correct fluid height calculation

* remove unused imports

* more testing setup

* improve/correct comment

* add tests for stone (with diamond pickaxe) and wool (with shears)

* update comment
2024-12-03 10:45:16 -05:00
GoldenStack
e0939f089b Integrate PlayerInventory (#2332)
* Integrate player inventory and normal inventory

* Fix errors and broken tests (drop before adding, wrong order, etc)

* Refactor slot refreshing

* Fix viewer logic error

* Fix incorrect merge

* Move inventory update

* Minor simplifications

* More minor simplifications
2024-12-03 10:45:16 -05:00
igalaxy
41738bb62a Fix a few item component issues (#2437)
* Update DyedItemColor.java

* Update FilteredText.java
2024-12-03 10:45:16 -05:00
mworzala
052ea4456f fix: update multi block change packet format 2024-12-03 10:45:16 -05:00