3
0

Fix for unschemed urls with using ip:port definition

This commit is contained in:
Prototik 2015-07-25 22:17:43 +07:00
parent 1c8806604f
commit 043978c113

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