ldtteam / minecolonies

Minecolonies minecraft mod
http://minecolonies.com/
GNU General Public License v3.0
657 stars 336 forks source link

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

Open Thodor12 opened 3 months ago

Thodor12 commented 3 months ago

Is there an existing issue for this?

Are you using the latest MineColonies Version?

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

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

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:

Logs

https://mclo.gs/y1GLSJ9

Anything else?