Skip to content

Commit

Permalink
Merge pull request #73 from Ironcanon/1.18.x
Browse files Browse the repository at this point in the history
Fixed null point exception with cached bees and the hoe overlay
  • Loading branch information
eerussianguy authored Sep 3, 2022
2 parents f38fe0b + 26eb1f8 commit 01c24f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void addHoeOverlayInfo(Level level, BlockPos pos, BlockState blockState,
{
ord++;
MutableComponent beeText = Helpers.translatable("firmalife.beehive.bee", String.valueOf(ord));
if (bee.hasQueen())
if (bee != null && bee.hasQueen())
{
beeText.append(Helpers.translatable("firmalife.beehive.has_queen"));
final float minTemp = BeeAbility.getMinTemperature(bee.getAbility(BeeAbility.HARDINESS));
Expand Down

0 comments on commit 01c24f5

Please sign in to comment.