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:
parent
16b00ac18b
commit
7409a12b36
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user