Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Forester stops cutting down tree when encountering productive bees nest #10632

Open
4 of 5 tasks
gisellevonbingen opened this issue Feb 2, 2025 · 0 comments
Open
4 of 5 tasks
Labels
Bug Gotta squash 'em all!

Comments

@gisellevonbingen
Copy link

gisellevonbingen commented Feb 2, 2025

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/release version of MineColonies for my Minecraft version.
    I am also running the latest versions of other mods that are part of my problem.

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

MineColonies Version

1.20.1-1.1.800-snapshot

Structurize Version

1.20.1-1.0.759-snapshot

Related Mods and their Versions

  1. Productive Bees

Current Behavior

output.mp4

#9358 is no fixed.

Expected Behavior

Forester cutting down tree includes bee nest.

Reproduction Steps

  1. Place sapling next to flower.
  2. Use compost or bonemeal to sapling to growing.
  3. Watch forester to how to cutting down tree.

Logs

No needed

Anything else?

The bee nest can't pass isBlockPartOfSameTree condition.

private void addAndSearch(@NotNull final Level world, @NotNull final BlockPos log, @Nullable final IColony colony)
{
if (woodBlocks.size() >= MineColonies.getConfig().getServer().maxTreeSize.get())
{
return;
}
if (woodBlocks.contains(log))
{
return;
}
// Check if the new log fits the Tree's base log type
if (!isBlockPartOfSameTree(world.getBlockState(log), world.getBlockState(location)))
{
return;
}

private boolean isBlockPartOfSameTree(
@NotNull final BlockState existingBlock,
@NotNull final BlockState newBlock)
{
if (existingBlock.is(ModTags.mangroveTree))
{
return newBlock.is(ModTags.mangroveTree);
}
return existingBlock.getBlock().equals(newBlock.getBlock());
}

Footer


Viewers

  • 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.
@gisellevonbingen gisellevonbingen added the Bug Gotta squash 'em all! label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Gotta squash 'em all!
Projects
None yet
Development

No branches or pull requests

1 participant