Hi, a lot of my players are asking if i could activate minecart with TNT, however when i enable it and try to explode the tnt, it doesn't break the blocks as it should but it removes the near fence gates and i don't know why or what makes that tnt break fence gates, even on enemy claims, this also happens with wither explosions, i want to know if there is a way to cancel it, my current code is this:
But the fence gates are still being removed
Code:
@EventHandler(ignoreCancelled = false, priority = EventPriority.HIGH)
public void onEntityExplode(EntityExplodeEvent event) {
event.blockList().clear();
if ((event.getEntity() instanceof EnderDragon) || (event.getEntity() instanceof Creeper)) {
event.setCancelled(true);
}
}
