Skip to content

Potion & Out of Bounds Itemtable fixes

Latest

Choose a tag to compare

@pablo67340 pablo67340 released this 15 Mar 01:48

Add support for lingering potions across code and docs, bump version to 9.4.3c, and improve potion handling and logging. Key changes:

  • Introduce lingering field in PotionInfo (constructor, getter/setter) and include it in serialization/PDC.
  • Parse old/new potion config formats (backwards compatible with 4-value PDC) and add config/docs for lingering in dev-bukkit, modrinth, spigot.bbcode, and wiki.
  • Map multiple potion name aliases (e.g. INSTANT_HEAL/HEALTH -> HEALING, INSTANT_DAMAGE/DAMAGE -> HARMING, JUMP_BOOST -> LEAPING, INCREASE_DAMAGE -> STRENGTH) and adapt to 1.20.5+ names.
  • Ensure correct item material selection for potions (POTION, SPLASH_POTION, LINGERING_POTION) and include lingering checks when matching/creating potion ItemStacks.
  • Register sellable items even if out-of-bounds for GUI display (so 'worth' shops can sell without display slots) and fix ITEMTABLE lookup to use the actual material key; add defensive logging for registration and lookup fallbacks.
  • Add extensive debug/logging in Item, Sell, Shop, WorthDisplayManager to aid troubleshooting of potion resolution, matching, registration and finds.
  • Bump Maven version to 9.4.3c.

These changes add lingering potion capability, improve backwards compatibility and alias handling, and make item registration/lookup and troubleshooting more robust.