Update WorldHoppingMixin.java

This commit is contained in:
Kyleeld
2019-07-02 10:48:48 +01:00
committed by GitHub
parent af43a8c460
commit 4fd1e47032

View File

@@ -15,7 +15,7 @@ public abstract class WorldHoppingMixin implements RSClient
public void openWorldHopper() public void openWorldHopper()
{ {
// The clicked x & y coordinates (the last arguments) are not processed in the game or sent to Jagex, so they don't have to be real. // The clicked x & y coordinates (the last arguments) are not processed in the game or sent to Jagex, so they don't have to be real.
MenuAction(-1, WidgetInfo.WORLD_SWITCHER_BUTTON.getId(), MenuAction.WIDGET_DEFAULT.getId(), 1, "World Switcher", "", 658, 384); invokeMenuAction(-1, WidgetInfo.WORLD_SWITCHER_BUTTON.getId(), MenuAction.WIDGET_DEFAULT.getId(), 1, "World Switcher", "", 658, 384);
} }
@Inject @Inject
@@ -23,6 +23,6 @@ public abstract class WorldHoppingMixin implements RSClient
public void hopToWorld(World world) public void hopToWorld(World world)
{ {
final int worldId = world.getId(); final int worldId = world.getId();
menuAction(worldId, WidgetInfo.WORLD_SWITCHER_LIST.getId(), MenuAction.WIDGET_DEFAULT.getId(), 1, "Switch", "<col=ff9040>" + (worldId - 300) + "</col>", 683, 244); invokeMenuAction(worldId, WidgetInfo.WORLD_SWITCHER_LIST.getId(), MenuAction.WIDGET_DEFAULT.getId(), 1, "Switch", "<col=ff9040>" + (worldId - 300) + "</col>", 683, 244);
} }
} }