Project MMO

Project MMO

10M Downloads

Lag Caused by NBT Configurations

Caltinor opened this issue ยท 0 comments

commented

Describe the bug
When multiple items using NBT reqs/bonuses are equipped, the game starts to lag.

Expected behavior
no lag

To Reproduce
Steps to reproduce the behavior:

  1. wear a full set of leather armor with a dye so it uses the full logic
  2. see lag

Versions:

  • Minecraft: 1.19.2
  • Loader: 43.1.47
  • PMMO: 1.19-0.5.5

Additional context
The fix is to cache the results using an NBT hash and compare the hashed NBT to see if a reevaluation of the item is required.