Dieser Commit ist enthalten in:
Ursprung
e1bdde7d00
Commit
4d51c1ff63
@ -106,19 +106,17 @@ public class PercentWincondition extends Wincondition implements PrintableWincon
|
||||
|
||||
@EventHandler
|
||||
public void onEntityExplode(EntityExplodeEvent event) {
|
||||
if (event.getEntityType() != EntityType.FIREBALL) {
|
||||
if (explosionFilter.getAsBoolean() || !team.getExtendRegion().inRegion(event.getEntity().getLocation())) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.blockList().forEach(block -> {
|
||||
if (testBlock.test(block.getType())) {
|
||||
currentBlocks--;
|
||||
}
|
||||
});
|
||||
|
||||
checkWin.accept(team);
|
||||
if (event.getEntityType() == EntityType.FIREBALL || explosionFilter.getAsBoolean() || !team.getExtendRegion().inRegion(event.getEntity().getLocation())) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.blockList().forEach(block -> {
|
||||
if (testBlock.test(block.getType())) {
|
||||
currentBlocks--;
|
||||
}
|
||||
});
|
||||
|
||||
checkWin.accept(team);
|
||||
}
|
||||
|
||||
private void enable() {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren