kourendlibrary: Fix for rev 170 menu code

The X/Y gets unpacked into the ActionParam and WidgetID now
This commit is contained in:
Max Weber
2018-05-11 02:17:15 -06:00
parent 564f54a42b
commit eb63fa2d30

View File

@@ -118,7 +118,7 @@ public class KourendLibraryPlugin extends Plugin
{
if (MenuAction.GAME_OBJECT_FIRST_OPTION == menuOpt.getMenuAction() && menuOpt.getMenuTarget().contains("Bookshelf"))
{
lastBookcaseClick = WorldPoint.fromRegion(client, menuOpt.getId() & 127, menuOpt.getId() >> 7 & 127, client.getPlane());
lastBookcaseClick = WorldPoint.fromRegion(client, menuOpt.getActionParam(), menuOpt.getWidgetId(), client.getPlane());
}
}