disallow descriptions after mod version

This commit is contained in:
DeltaNedas 2020-12-13 19:30:21 +00:00
parent ddd9f2259c
commit 926497ba77

View File

@ -647,6 +647,14 @@ public class Mods implements Loadable{
meta.hidden = true;
}
//disallow putting a description after the version
if(meta.version != null){
int line = meta.version.indexOf('\n');
if(line != -1){
meta.version = meta.version.substring(0, line);
}
}
if(!headless){
Log.info("Loaded mod '@' in @ms", meta.name, Time.elapsed());
}