3
0
Fork 1

Fix for unschemed urls with using ip:port definition

kcx-1614
Prototik 2015-07-25 22:17:43 +07:00
parent 1c8806604f
commit 043978c113
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public final class CraftChatMessage {
currentChatComponent = null;
break;
case 3:
if (URI.create(match).getScheme() == null) {
if (match.indexOf("://") < 0) {
match = "http://" + match;
}
modifier.setChatClickEvent(new net.minecraft.event.ClickEvent(net.minecraft.event.ClickEvent.Action.OPEN_URL, match)); // Should be setChatClickable