Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
e60ae56b67
Commit
3c1275393f
@ -136,6 +136,10 @@ public class FreezeUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void createPackets() {
|
private void createPackets() {
|
||||||
|
if (FreezeUtils.entities.stream().anyMatch(Entity::isDead)) {
|
||||||
|
entities.clear();
|
||||||
|
packets.clear();
|
||||||
|
}
|
||||||
List<Entity> entities = Bukkit.getWorlds().get(0).getEntities().stream()
|
List<Entity> entities = Bukkit.getWorlds().get(0).getEntities().stream()
|
||||||
.filter(e -> !(e instanceof Player))
|
.filter(e -> !(e instanceof Player))
|
||||||
.filter(e -> !FreezeUtils.entities.contains(e))
|
.filter(e -> !FreezeUtils.entities.contains(e))
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren