refactor: store invulnerability as tag, fix #687

This commit is contained in:
William committed 2024-10-31 10:51:59 +00:00
1 parent aa86dc524c
commit d55260fe9b
6 files changed
+32 -34

No files matched your search

@@ -228,19 +228,6 @@ public interface HuskHomes extends Task.Supplier, EventDispatcher, SavePositionP
return this.getCurrentlyOnWarmup().contains(userUuid);
}
@NotNull
Set<UUID> getCurrentlyInvulnerable();
/**
* Returns if the given user is currently invulnerable and if it should be removed.
*
* @param uuid the user to check.
* @return if the user is currently invulnerable.
*/
default boolean isInvulnerable(@NotNull UUID uuid) {
return this.getCurrentlyInvulnerable().contains(uuid);
}
/**
* Log a message to the console.
*