
CrowBar
Adds skins and nametags to the player locator bar
Оцените первым
153
0
Список изменений
CrowBar v0.1.2
Various improvements to the allium.crowbar locator bar renderer
Download: here
Added
- Citizens NPC locator bar suppression: On first load, Allium now sets
Attribute.WAYPOINT_RECEIVE_RANGE = -1on all Citizens NPCs via the Citizens API (reflective, no compile dependency). This prevents NPCs from appearing on the vanilla locator bar at any range. NPC bodies remain fully visible since the attribute only affects the locator bar waypoint system, not entity rendering.
Changed
- Renderable entries check:
hasRenderableAlliumEntries()now properly checks for non-expired, non-self Allium entries before rendering the CrowBar locator bar, rather than just checking!alliumPlayerData.isEmpty(). This prevents the bar from showing when only stale data from a previous server exists. - Allium renderer disabled in self-view: When
viewSelfEnabledis toggled on, the Allium-restored player renderer (renderAlliumRestoredPlayers) is completely skipped, since self-view mode draws its own independent bar. - Vanilla locator bar cancellation: The mixins that cancel vanilla
renderBarandrenderAddonsnow usehasRenderableAlliumEntries()so the vanilla bar is only hidden when there's actual Allium data worth showing — not just because the Allium data map is non-empty. - Clear Allium data on disconnect: Added
ClientPlayConnectionEvents.DISCONNECThandler that clearsalliumPlayerData, preventing stale entries from a previous server from showing up on LAN worlds or singleplayer worlds. - All NPC-specific handling code removed: Since WAYPOINT_RECEIVE_RANGE = -1 on Citizens handles NPC locator suppression at the server level, all hand-rolled NPC filtering code has been stripped from both Allium and CrowBar:
- Removed
isCitizensNpcUuid()from PartyManager and CrowBarDataSender - Removed
isRealPlayerName()from CrowBarState - Removed
isNPC()from CrowBarHudRenderer - Removed
crowbar$isNPC()from CrowBarRendererMixin
- Removed
What's Fixed
- Untextured dots: Allium-restored player dots now use
drawGuiTexturewith a properlocator_bar_dot/default_0sprite and tint color, instead of bare rect rendering that produced untextured squares. - Segmented bar: The Allium-restored bar background now uses a single
drawGuiTexturecall with thelocator_bar_backgroundsprite instead of manually drawing 9-segment tiles that could misalign. - Persistence across servers: Fixed a bug where Allium player data from one server would linger in memory and appear on LAN worlds or different servers after disconnect. Data is now cleared on
ClientPlayConnectionEvents.DISCONNECT. - Self-view mode: Fixed a conflict where both the CrowBar Allium renderer and the self-view renderer would draw simultaneously. The Allium renderer now returns early when
viewSelfEnabledis true.
Requirements
- Minecraft 1.21.11
- Fabric Loader 0.18.4 or newer
- Fabric API 0.141.4 or newer
- Java 21
Файлы
CrowBar-1.21.11-0.1.2.jar(51.10 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
0.1.2
Загрузчики
Fabric
Версии игры
1.21.11
Загрузок
7
Дата публикации
31.05.2026
