Resolves #95
To show request-able items in the post box:
Minecolonies takes all registered items from forge registries
creates brand new item stacks form them
then sorts them by calling getHoverName which calls this.getItem().getName().
get name for microblocks is overridden and calls getFactory()
which in turn calls getFactoryId
It breaks because those brand new item stacks do not have the factory_id tag for microblocks. And getFactoryId returns hard coded -2000 value.
We should be checking array bounds before trying to fetch a factory.
Resolves #95 To show request-able items in the post box:
It breaks because those brand new item stacks do not have the factory_id tag for microblocks. And getFactoryId returns hard coded -2000 value. We should be checking array bounds before trying to fetch a factory.