mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Fix links in a hacky way
This commit is contained in:
parent
4f4113d3d1
commit
fb15c44383
@ -341,8 +341,9 @@ public class ContentParser{
|
||||
if(contentTypes.isEmpty()){
|
||||
init();
|
||||
}
|
||||
//add comments starting with ##
|
||||
json = json.replaceAll("//.*?\n","\n");
|
||||
|
||||
//add comments starting with ##, but ignore links
|
||||
json = json.replace("http://", "http:~~").replace("https://", "https:~~").replaceAll("//.*?\n","\n").replace("http:~~", "http://").replace("https:~~", "https://");
|
||||
|
||||
JsonValue value = parser.fromJson(null, json);
|
||||
if(!parsers.containsKey(type)){
|
||||
|
Loading…
Reference in New Issue
Block a user