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; currentChatComponent = null;
break; break;
case 3: case 3:
if (URI.create(match).getScheme() == null) { if (match.indexOf("://") < 0) {
match = "http://" + match; match = "http://" + match;
} }
modifier.setChatClickEvent(new net.minecraft.event.ClickEvent(net.minecraft.event.ClickEvent.Action.OPEN_URL, match)); // Should be setChatClickable modifier.setChatClickEvent(new net.minecraft.event.ClickEvent(net.minecraft.event.ClickEvent.Action.OPEN_URL, match)); // Should be setChatClickable