Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-04 15:20:09 +01:00
Check if item is active and added global items
Dieser Commit ist enthalten in:
Ursprung
68cd2eb4f1
Commit
acc3a8222a
@ -100,6 +100,10 @@ public final class NewsItem {
|
||||
return project;
|
||||
}
|
||||
|
||||
public boolean isGlobal() {
|
||||
return "all".equals(getProject());
|
||||
}
|
||||
|
||||
public boolean isActive() {
|
||||
return active;
|
||||
}
|
||||
|
@ -142,7 +142,11 @@ public class NewsHandler {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Constants.NEWS_PROJECT_LIST.contains(item.getProject())) {
|
||||
if (!item.isActive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!item.isGlobal() && !Constants.NEWS_PROJECT_LIST.contains(item.getProject())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren