Skip to content

Conversation

@Intybyte
Copy link

Add [#8]

}

MovecraftLocation movecraftLocation = new MovecraftLocation(explosionLocation.getBlockX(), explosionLocation.getBlockY(), explosionLocation.getBlockZ());
boolean explodingOnCraft = CraftManager.getInstance().getCraftsInWorld(explosionLocation.getWorld()).stream().anyMatch(it -> it.getHitBox().contains(movecraftLocation));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an inefficient method to do a check like this, please use the utility functions in WorldGuardUtils or a similar algorithm.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't find any good function there that might help me in my case, maybe there is something useful in MathUtils

@goodroach
Copy link

Wow I did not realize that you actually made this before I did, but BlockBurnEvent won't do anything in your case unless I'm wrong. BlockIgniteEvent is what prevents the blocks from burning. BlockBurnEvent only happens when the block breaks from the fire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants