Move clientMainLoop to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -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