mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-04 15:27:19 +07:00
use // for comments
This commit is contained in:
@ -341,8 +341,8 @@ public class ContentParser{
|
||||
if(contentTypes.isEmpty()){
|
||||
init();
|
||||
}
|
||||
//add comments starting with #
|
||||
json = json.replaceAll("##.*?\n","\n");
|
||||
//add comments starting with ##
|
||||
json = json.replaceAll("//.*?\n","\n");
|
||||
|
||||
JsonValue value = parser.fromJson(null, json);
|
||||
if(!parsers.containsKey(type)){
|
||||
|
Reference in New Issue
Block a user