Project MMO

Project MMO

10M Downloads

XP Values of 0 Should Not Be Shown

SomewhatDamaged opened this issue ยท 0 comments

commented

Describe the bug
When an item has a crafting XP value of 0 it is shown as Crafting: 0

Expected behavior
A clear and concise description of what you expected to happen.

To Reproduce
Steps to reproduce the behavior:

  1. Make a disabler datapack
  2. Add an item to it
  3. Make it {"xp_values":{"CRAFT":{"crafting":0}}}
  4. See screenshot

Screenshots
image

Versions:

  • Minecraft: 1.19.2
  • Loader: Forge-43.2.4
  • PMMO: 1.19-3.0.2

Additional context
Probably should be part of every tooltip generation code to ignore a value of 0