Move clientMainLoop to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -93,7 +93,7 @@ public class Hooks
|
||||
private static long lastCheck;
|
||||
private static boolean shouldProcessGameTick;
|
||||
|
||||
public static void clientMainLoop(Client client, boolean arg1)
|
||||
public static void clientMainLoop()
|
||||
{
|
||||
if (shouldProcessGameTick)
|
||||
{
|
||||
|
||||
@@ -44,6 +44,11 @@ public class Hooks
|
||||
public static EventBus eventBus;
|
||||
public static EventBus deferredEventBus;
|
||||
|
||||
public static void clientMainLoop()
|
||||
{
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
public static void draw(MainBufferProvider mainBufferProvider, Graphics graphics, int x, int y)
|
||||
{
|
||||
throw new IllegalStateException();
|
||||
|
||||
@@ -1050,4 +1050,11 @@ public abstract class RSClientMixin implements RSClient
|
||||
final ChatMessage chatMessage = new ChatMessage(chatMessageType, name, message, sender);
|
||||
eventBus.post(chatMessage);
|
||||
}
|
||||
|
||||
@Inject
|
||||
@MethodHook("methodDraw")
|
||||
public void methodDraw(boolean var1)
|
||||
{
|
||||
Hooks.clientMainLoop();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user