3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00
Geyser/core/src
YHDiamond fbd157ccdf
Add Attribute Modifiers Display (#3728)
* Add Attribute Modifiers Display

Allows Bedrock players to view the Attribute modifiers display on the bottom of items.

* Fix handling for Knockback Resistance

For some reason, Knockback Resistance is multiplied by 10 in the display for addition, so this handles that oddball.

* Add null check for NBT

* Remove "contains" check

This is checked in the beginning of the addAttributes method so is not required here.

* Add curly brackets

Camotoy likes curly brackets I guess

* Use ModifierOperation enum instead of int for clarity
2023-05-16 14:54:34 -05:00
..
main Add Attribute Modifiers Display (#3728) 2023-05-16 14:54:34 -05:00
test/java/org/geysermc/geyser Fix the RGB downgrade chat test. (#3697) 2023-04-26 12:25:56 -04:00