mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fix edithome privacy not working
This commit is contained in:
1 parent
6903a705cd
commit
c316d290c5
2 files changed
+1
-5
No files matched your search
@@ -248,10 +248,6 @@ public class HomesManager {
|
||||
}
|
||||
|
||||
public void setHomePrivacy(@NotNull Home home, boolean isPublic) {
|
||||
if (isPublic == home.isPublic()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isPublic && home.getOwner() instanceof OnlineUser online) {
|
||||
final int publicHomes = plugin.getDatabase().getHomes(home.getOwner()).stream()
|
||||
.filter(Home::isPublic)
|
||||
|
||||
Reference in new issue
Block a user