forked from xjboss/KCauldronX
Fix for unschemed urls with using ip:port definition
This commit is contained in:
parent
1c8806604f
commit
043978c113
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user