Make sure the TNT is removed

This commit is contained in:
Taah 2023-08-24 02:41:57 -07:00
parent 8344e3596e
commit 7dea0bcb72

View File

@ -15,6 +15,7 @@ public class TogglesListener extends PlexListener
{ {
if (!plugin.toggles.getBoolean("explosions")) if (!plugin.toggles.getBoolean("explosions"))
{ {
event.getEntity().remove();
event.setCancelled(true); event.setCancelled(true);
} }
} }
@ -24,6 +25,7 @@ public class TogglesListener extends PlexListener
{ {
if (!plugin.toggles.getBoolean("explosions")) if (!plugin.toggles.getBoolean("explosions"))
{ {
event.getEntity().remove();
event.setCancelled(true); event.setCancelled(true);
} }
} }