3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-09-20 02:00:07 +02:00
Geyser/core/src/main/resources
David Choo b33cc512b4
Add custom skull render distance (#2751)
* Add player skull render distance

* Improve updateVisibleSkulls a bit

Avoid rechecking visibility on small movements

* Periodically despawn unused skull entities

* Don't hide skull entity for position/rotation changes

Prevents flickering for skulls that are rotating

* Update visible skulls when a skull is removed

* Only update on removal if an entity is assigned

* No need to check for skull in ChunkUtils

Update copyright year

* Avoid rechecking all skulls when a skull is added/removed

* Allow skull render distance and number to be configured

Renamed some fields to better match their values

* Compare texture property directly from GameProfile

* Remove unnecessary blockState field from SkullPlayerEntity

* Use binarySearch for insertion

Wait for player movement before loading skulls

* Allow culling to be disabled by setting max-visible-custom-skulls to -1

* Only remove skulls in inRangeSkulls when culling is enabled

* Add suggestions from review

* Merge the for loops in updateVisibleSkulls

* Fix skulls being leaked on chunk unload
2022-05-14 15:12:18 -04:00
..
bedrock Bump version; drop 1.17.40; support 1.18.30 2022-04-17 19:53:06 -04:00
languages@f073cf2b9e Replace show coordinates string 2022-03-22 23:01:00 -04:00
mappings@f73b45844f Properly map lit deepslate redstone ore 2022-02-26 20:10:07 -05:00
META-INF/services The Great Refactor Part 1 - connector -> core 2021-11-20 13:56:40 -06:00
config.yml Add custom skull render distance (#2751) 2022-05-14 15:12:18 -04:00