Update WorldHoppingMixin.java
This commit is contained in:
@@ -15,7 +15,7 @@ public abstract class WorldHoppingMixin implements RSClient
|
||||
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.
|
||||
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
|
||||
@@ -23,6 +23,6 @@ public abstract class WorldHoppingMixin implements RSClient
|
||||
public void hopToWorld(World world)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user