3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-30 18:10:16 +01:00
Geyser/api/src
chris 126d56d144
Fix: Ignore invalid block entity data sent by Java server (#4766)
* Proper block entity checks; ignore invalid block entity data sent by Java server

* fix intelliJ warning about potentially null block state

* Use auto-generated block entity types instead of hardcoding them

* undo some diff

* Update BlockRegistryPopulator.java

* Access block entity type of state by getting the block first

* deprecate JavaBlockState#hasBlockEntity

* Simplify check

* Add type check in JavaBlockEntityDataTranslator, ensure deprecated setBlockEntity() method still sets piston behavior

* nullability annotations

* yeet duplicate check
2024-06-19 23:48:55 +02:00
..
main/java/org/geysermc/geyser/api Fix: Ignore invalid block entity data sent by Java server (#4766) 2024-06-19 23:48:55 +02:00