Skip to content

CosmeticArmorReworked ​

5 merged pull requests.

New Features ​

  • #5 Modified ContainerCosArmor to allow block items in addition to armor items for the head slot. - @Ranzuu
    • Added: Block item support in head armor slot

Changes ​

  • #1 Keyboard.KEY_C became Keyboard.KEY_NONE, and the ClientTickEvent polling of getIsKeyPressed() was replaced with an InputEvent.KeyInputEvent handler using isPressed(), so the open packet fires once per press instead of every tick the key is held. - @Alexdoru

Bug Fixes ​

  • #6 Modified GuiCosArmorButton and GuiEvents tooltip rendering; added new GuiScreenTooltipHelper utility class for improved tooltip positioning. - @Elyspio
    • Added: GuiScreenTooltipHelper
    • Fixed: cosmetic armor tooltip display
  • #4 Removed conditional GUI offset logic in GuiCosArmorInventory and GuiEvents that was checking for potion effect display. - @Alexdoru
    • Removed: Potion-based GUI offset calculation
    • Fixed: Cosmetic armor button misalignment with active potion effects
  • #2 Removed retained world references in PlayerRenderHandler, InventoryManagerClient, and NetworkManager; added proper cleanup in GuiHandler and CosmeticArmorReworked on world unload events. - @Alexdoru
    • Removed: Unnecessary retained state in rendering handlers
    • Fixed: Memory leak from held world references, Client-side state not clearing on world unload

Contributors ​

Everyone who authored, reviewed or co-authored a change on this page, with how many of them:

@Alexdoru (3), @boubou19 (2), @Ranzuu (2), @Elyspio (1), @jss2a98aj (1), @koolkrafter5 (1)