Blockus

Blockus

7M Downloads

StackOverflowError in creative inventory with Extra Pieces

Juuxel opened this issue ยท 0 comments

commented
  • MC: 1.14.3
  • Blockus: 1.1.12
  • Extra Pieces: 2.0.0

Full log: https://gist.github.com/Juuxel/27d29dcbe1d5c86d35278d74ad38d4ac

How to reproduce

  1. Create a new creative world
  2. Open the creative inventory and switch to the second page

This seems to be the cause:

ColorProviderRegistry.ITEM.register((item, layer) -> {
ItemColorProvider provider = ColorProviderRegistry.ITEM.get(Other.SMALL_HEDGE);
return provider == null ? -1 : provider.getColor(item, layer);
}, Other.SMALL_HEDGE);

Other.SMALL_HEDGE uses itself in its color provider.