MineColonies

MineColonies

59M Downloads

[BUG] Beekeeper AI will crash upon trying to read honey level from non beehive

Thodor12 opened this issue ยท 0 comments

commented

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest MineColonies Version?

  • I am running the latest beta version of MineColonies for my Minecraft version.

Did you check on the Wiki? or ask on Discord?

  • I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.

What were you playing at the time? Were you able to reproduce it in both settings?

  • Single Player
  • Multi Player

Minecraft Version

1.20.1

MineColonies Version

1.20.1-1.1.593-BETA

Structurize Version

1.20.1-1.0.737-BETA

Related Mods and their Versions

No response

Current Behavior

The Beekeeper is somehow able to read the honey level from non beehive blocks, causing a crash

Expected Behavior

The Beekeeper should first check if the block is a beehive, before attempting to read a property that does not exist.

Reproduction Steps

None were provided by the OP, but a good guess:

  • Place an apiary
  • Tag beehives with the hive tool
  • Destroy one of the beehives by hand
  • Crash should appear upon the next cycle of the AI

Logs

https://mclo.gs/y1GLSJ9

Anything else?

  • Add a thumbs-up to the bug report if you are also affected. This helps the bug report become more visible to the team and doesn't clutter the comments.
  • Add a comment if you have any insights or background information that isn't already part of the conversation.