0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Fix ConcurrentModificationException in RemoteViewHack

This commit is contained in:
Alexander01998 2020-11-30 12:56:50 +01:00
parent 16b00ac18b
commit 7409a12b36

View File

@ -251,7 +251,7 @@ public final class RemoteViewHack extends Hack
if(!isEnabled() && viewName != null && !viewName.isEmpty())
{
entity = StreamSupport
.stream(MC.world.getEntities().spliterator(), true)
.stream(MC.world.getEntities().spliterator(), false)
.filter(e -> e instanceof LivingEntity)
.filter(e -> !e.removed && ((LivingEntity)e).getHealth() > 0)
.filter(e -> e != MC.player)