Mekanism Additions

Mekanism Additions

24M Downloads

Killing players in private territory

BazZziliuS opened this issue ยท 3 comments

commented

Issue description

Problem Description:
The Flamethrower from the "Mechanism" mod deals damage to players in regions protected by the WorldGuard plugin, including FTB Chunks.

Improvement Suggestion:
Add a fake player link to the flamethrower's fire essence so that the source of damage can be identified and correctly cancelled in protected areas.

Steps to reproduce

Enable chunk protection via FTB Chunks for the territory.
Equip the Flamethrower and use it within the protected area, aiming it at a player or entity.
Note that damage is still dealt regardless of the protection settings.

Minecraft version

1.21.1 (Latest)

NeoForge version

21.1.115

Mekanism version

10.7.7 (Latest)

Other relevant versions

1.20.1

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

No response

commented

The reactor already fires the explosion event. We manually break blocks of the reactor if it is cancelled (just so that we don't infinitely have it explode like used to happen with FTB Chunks), but if they stop the explosions in the chunk, our forced breakage only happens to blocks of the reactor itself.

commented

We already mark the player who shot it as the projectile's owner (similar to what arrows do). So if it is actually the damage that is applying then it is probably a bug on their end. I did just make a change for the next version though that only sets the entity on fire if they took damage for the flamethrower though.

commented

Is it also possible to check for block breakage when a reactor explodes with the same problem?