diff --git a/core/src/io/anuke/mindustry/mod/ContentParser.java b/core/src/io/anuke/mindustry/mod/ContentParser.java index 642527434a..f42c34ea33 100644 --- a/core/src/io/anuke/mindustry/mod/ContentParser.java +++ b/core/src/io/anuke/mindustry/mod/ContentParser.java @@ -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)){