Merge branch '1.14.4' into 1.15.2
This commit is contained in:
@@ -29,5 +29,5 @@ public abstract class MixinScreen implements IGuiScreen {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Invoker("openLink")
|
@Invoker("openLink")
|
||||||
public abstract void openLink(URI url);
|
public abstract void openLinkInvoker(URI url);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ public class BaritoneChatControl implements Helper, AbstractGameEventListener {
|
|||||||
return false;
|
return false;
|
||||||
} else if (msg.trim().equalsIgnoreCase("orderpizza")) {
|
} else if (msg.trim().equalsIgnoreCase("orderpizza")) {
|
||||||
try {
|
try {
|
||||||
((IGuiScreen) mc.currentScreen).openLink(new URI("https://www.dominos.com/en/pages/order/"));
|
((IGuiScreen) mc.currentScreen).openLinkInvoker(new URI("https://www.dominos.com/en/pages/order/"));
|
||||||
} catch (NullPointerException | URISyntaxException ignored) {}
|
} catch (NullPointerException | URISyntaxException ignored) {}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ import java.net.URI;
|
|||||||
|
|
||||||
public interface IGuiScreen {
|
public interface IGuiScreen {
|
||||||
|
|
||||||
void openLink(URI url);
|
void openLinkInvoker(URI url);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user