mirror of
https://github.com/Wurst-Imperium/Wurst7.git
synced 2024-09-20 09:16:20 +02:00
Update AutoSwordHack.java
This commit is contained in:
parent
dba47c8e36
commit
e1b41a47f5
@ -199,10 +199,10 @@ public final class AutoSwordHack extends Hack implements UpdateListener
|
||||
}
|
||||
private boolean isCorrectEntity(Entity entity)
|
||||
{
|
||||
Stream<Entity> stream = Stream.of(entity);
|
||||
try (Stream<Entity> stream = Stream.of(entity)) {
|
||||
stream = stream.filter(EntityUtils.IS_ATTACKABLE);
|
||||
|
||||
return stream.findFirst().isPresent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user