0
0
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:
Tejas Lamba 2023-10-12 19:54:29 +05:30 committed by GitHub
parent dba47c8e36
commit e1b41a47f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}
}
}