@@ -232,12 +232,12 @@ private void setupCustomCharts(Metrics metrics) {
232232 int whitelisted = 0 ;
233233 for (BukkitWorldConfiguration worldConfig : platform .getGlobalStateManager ().getWorldConfigs ()) {
234234 Blacklist blacklist = worldConfig .getBlacklist ();
235- if (blacklist == null || blacklist .isEmpty ()) {
236- continue ;
237- } else if ( blacklist .isWhitelist ()) {
238- whitelisted += blacklist . getItemCount ();
239- } else {
240- blacklisted += blacklist . getItemCount ();
235+ if (blacklist != null && ! blacklist .isEmpty ()) {
236+ if ( blacklist . isWhitelist ()) {
237+ whitelisted += blacklist .getItemCount ();
238+ } else {
239+ blacklisted += blacklist . getItemCount ();
240+ }
241241 }
242242 }
243243 Map <String , Integer > blacklistCounts = new HashMap <>();
@@ -246,9 +246,9 @@ private void setupCustomCharts(Metrics metrics) {
246246 return blacklistCounts ;
247247 }));
248248 metrics .addCustomChart (new Metrics .SimplePie ("chest_protection" , () ->
249- "" + Streams . stream ( platform .getGlobalStateManager ().getWorldConfigs ()).anyMatch (cfg -> cfg .signChestProtection )));
249+ "" + platform .getGlobalStateManager ().getWorldConfigs (). stream ( ).anyMatch (cfg -> cfg .signChestProtection )));
250250 metrics .addCustomChart (new Metrics .SimplePie ("build_permissions" , () ->
251- "" + Streams . stream ( platform .getGlobalStateManager ().getWorldConfigs ()).anyMatch (cfg -> cfg .buildPermissions )));
251+ "" + platform .getGlobalStateManager ().getWorldConfigs (). stream ( ).anyMatch (cfg -> cfg .buildPermissions )));
252252
253253 metrics .addCustomChart (new Metrics .SimplePie ("custom_flags" , () ->
254254 "" + (WorldGuard .getInstance ().getFlagRegistry ().size () > Flags .INBUILT_FLAGS .size ())));
0 commit comments