EntityExplosionEvent not working?

Hi, I’m trying to disable explosions but it seems the code is not working. I get no errors. It’s just not working:

@Subscribe
public void onEntityExplosion(EntityExplosionEvent event) {
    event.setYeld(0);
}

That’s it. Is not working and I don’t know why. I have also tried this:

@Subscribe
public void onExplosionPrime(ExplosionPrimeEvent event) {
    event.setCancelled(true);
}

Also not working. I don’t get errors at the console either.

Thanks and sorry for my english :stuck_out_tongue:

I was checking out the EntityExplosionEvent class for the SpongeAPI on Github and I don’t think they have implemented the event yet.

1 Like

This is likely.

Ok. Thank you guys :smiley: