Fix TNTListener
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
66eb89c186
Commit
abb106325a
@ -38,9 +38,6 @@ public class TNTListener implements Listener {
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onExplode(EntityExplodeEvent event) {
|
public void onExplode(EntityExplodeEvent event) {
|
||||||
event.blockList().removeIf(block -> {
|
event.blockList().removeIf(block -> {
|
||||||
if (block.getType() == Material.TNT) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Region region = Region.getRegion(block.getLocation());
|
Region region = Region.getRegion(block.getLocation());
|
||||||
TNTMode value = region.getPlain(Flag.TNT);
|
TNTMode value = region.getPlain(Flag.TNT);
|
||||||
if (value == TNTMode.ALLOW) {
|
if (value == TNTMode.ALLOW) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren