Productive Bees

Productive Bees

10M Downloads

[1.16.5] Crash in inventory with Pokecube

Elec0 opened this issue ยท 1 comments

commented

Issue Description:

Client crashes when searching 'Bee' in JEI with Pokecube and Productive Bees installed.

crash-2021-04-12_16.25.41-client.txt

It looks like productive bees is trying to do some custom rendering or something with the bees pokecube adds without proper type checking.

What happens:

Client crashes unexpectedly .

java.lang.ClassCastException: pokecube.core.entity.pokemobs.GenericPokemob cannot be cast to net.minecraft.entity.passive.BeeEntity
at cy.jdkdigital.productivebees.integrations.jei.ingredients.BeeIngredient.getCachedEntity(BeeIngredient.java:43) ~[productivebees:1.16.5-0.6.9.8] {re:classloading}

What you expected to happen:

No crash

Steps to reproduce:

  1. Have Pokecube, Productive Bees, and JEI installed
  2. Search 'Bee'
  3. Observe crash

Affected Versions:

  • Pokecube AIO: 1.16.5-3.11.4
  • Productive Bees: 1.16.5-0.6.9.8
  • Minecraft: 1.16.5
  • Forge: 36.1.0
commented

Thanks for the report. I am rendering any entity added to the beehive_inhabitors tag and it looks like pokecube is adding non-bee entity entities, which I suppose is allowed. I'll need to add some more checks.