File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/lol/hyper/velocityblockversion/tools Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 2525import java .util .ArrayList ;
2626import java .util .Iterator ;
2727import java .util .List ;
28+ import java .util .stream .Collectors ;
2829
2930public class ConfigHandler {
3031
@@ -72,6 +73,7 @@ public void loadConfig() {
7273 velocityBlockVersion .logger .warn (
7374 "To fix this, delete your current config and let the server remake it." );
7475 }
76+ blockVersions .clear ();
7577 // for some reason, the config loads the versions as longs
7678 // we have to convert them this ugly way
7779 for (Object obj : config .getList ("versions" )) {
@@ -83,6 +85,7 @@ public void loadConfig() {
8385 } else {
8486 velocityBlockVersion .logger .info ("Loaded " + blockVersions .size () + " versions!" );
8587 }
88+ velocityBlockVersion .logger .info ("Loaded versions: " + blockVersions .stream ().map (String ::valueOf ).collect (Collectors .joining (", " )));
8689 // use an iterator here so we can remove stuff
8790 Iterator <Integer > iter = blockVersions .iterator ();
8891 while (iter .hasNext ()) {
You can’t perform that action at this time.
0 commit comments