mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-08 14:24:52 +07:00
disallow descriptions after mod version
This commit is contained in:
parent
ddd9f2259c
commit
926497ba77
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user