mirror of
https://github.com/HibiscusMC/HibiscusCommons.git
synced 2025-12-19 15:09:26 +00:00
clean: clean code for isInvisible method
This commit is contained in:
@@ -161,12 +161,11 @@ public class Hooks {
|
||||
}
|
||||
|
||||
public static boolean isInvisible(UUID uuid) {
|
||||
boolean invisible = false;
|
||||
for (Hook hook : HOOK_POOL.values()) {
|
||||
if (hook.isDetected()) {
|
||||
if (hook.isInvisible(uuid)) invisible = true;
|
||||
if (hook.isInvisible(uuid)) return true;
|
||||
}
|
||||
}
|
||||
return invisible;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user