Merge remote-tracking branch 'origin/Meteor' into Meteor
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Commit
b294457641
@ -106,19 +106,17 @@ public class PercentWincondition extends Wincondition implements PrintableWincon
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onEntityExplode(EntityExplodeEvent event) {
|
public void onEntityExplode(EntityExplodeEvent event) {
|
||||||
if (event.getEntityType() != EntityType.FIREBALL) {
|
if (event.getEntityType() == EntityType.FIREBALL || explosionFilter.getAsBoolean() || !team.getExtendRegion().inRegion(event.getEntity().getLocation())) {
|
||||||
if (explosionFilter.getAsBoolean() || !team.getExtendRegion().inRegion(event.getEntity().getLocation())) {
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
event.blockList().forEach(block -> {
|
|
||||||
if (testBlock.test(block.getType())) {
|
|
||||||
currentBlocks--;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
checkWin.accept(team);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event.blockList().forEach(block -> {
|
||||||
|
if (testBlock.test(block.getType())) {
|
||||||
|
currentBlocks--;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
checkWin.accept(team);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void enable() {
|
private void enable() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren