FallenMoonNetwork / CanaryMod

Server administration mod and API for Minecraft beta multiplayer server
http://canarymod.net
GNU Lesser General Public License v3.0
20 stars 14 forks source link

Request - let onDamage handle Explosion damage cancelation #93

Closed darkdiplomat closed 11 years ago

darkdiplomat commented 11 years ago

Letting entities take damage from an explosions even if onExplode/onExplosion is canceled

this could probably be achieved by removing the !canceled at ln 155 in OExplosion

14mRh4X0r commented 11 years ago

We won't do this, since this would break all other plugins that assume the whole explosion stuff is being cancelled. What you (probably) want can be achieved by the following code:

@Override
public boolean onExplosion(Block block, BaseEntity entity, List blocksAffected) {
    blocksAffected.clear();
    return false;
}
darkdiplomat commented 11 years ago

Good point, and made me think of how to do something else a little bit better in the same process