Move updateNpcs call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -104,6 +104,11 @@ public class Hooks
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
public static void updateNpcs()
|
||||
{
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
public static boolean menuActionHook(int actionParam, int widgetId, int menuAction, int id, String menuOption, String menuTarget, int var6, int var7)
|
||||
{
|
||||
throw new RuntimeException();
|
||||
|
||||
@@ -49,6 +49,7 @@ import static net.runelite.api.MenuAction.PLAYER_THIRD_OPTION;
|
||||
import net.runelite.api.MenuEntry;
|
||||
import net.runelite.api.NPC;
|
||||
import net.runelite.api.Node;
|
||||
import net.runelite.api.PacketBuffer;
|
||||
import static net.runelite.api.Perspective.LOCAL_TILE_SIZE;
|
||||
import net.runelite.api.Player;
|
||||
import net.runelite.api.Point;
|
||||
@@ -1026,4 +1027,11 @@ public abstract class RSClientMixin implements RSClient
|
||||
event.setMenuEntries(getMenuEntries());
|
||||
eventBus.post(event);
|
||||
}
|
||||
|
||||
@Inject
|
||||
@MethodHook("updateNpcs")
|
||||
public static void updateNpcs(boolean var0, PacketBuffer var1)
|
||||
{
|
||||
Hooks.updateNpcs();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user