Fixed CME
Dieser Commit ist enthalten in:
Ursprung
e5d3712287
Commit
156ee1c7b1
@ -129,9 +129,7 @@ public class Detonator implements Listener {
|
|||||||
|
|
||||||
if(event.getPlayer().isSneaking()) {
|
if(event.getPlayer().isSneaking()) {
|
||||||
if(locs.stream().filter(detonatorActivation -> detonatorActivation.location.equals(event.getClickedBlock().getLocation())).collect(Collectors.toList()).size() == 1) {
|
if(locs.stream().filter(detonatorActivation -> detonatorActivation.location.equals(event.getClickedBlock().getLocation())).collect(Collectors.toList()).size() == 1) {
|
||||||
locs.forEach(detonatorActivation -> {
|
locs.removeIf(detonatorActivation -> detonatorActivation.location.equals(event.getClickedBlock().getLocation()));
|
||||||
if(detonatorActivation.location.equals(event.getClickedBlock().getLocation())) locs.remove(detonatorActivation);
|
|
||||||
});
|
|
||||||
print(detoloader.addBack ? "§e" + detoloader.getBlock() + " entfernt" :
|
print(detoloader.addBack ? "§e" + detoloader.getBlock() + " entfernt" :
|
||||||
detoloader.getBlock(), detoloader.addBack);
|
detoloader.getBlock(), detoloader.addBack);
|
||||||
}else {
|
}else {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren