Fix runetime errors in dev tools wq
This commit is contained in:
@@ -171,14 +171,6 @@ class VarInspector extends JFrame
|
||||
|
||||
pack();
|
||||
|
||||
addSubscriptions();
|
||||
}
|
||||
|
||||
private void addSubscriptions()
|
||||
{
|
||||
eventBus.subscribe(VarbitChanged.class, this, this::onVarbitChanged);
|
||||
eventBus.subscribe(VarClientIntChanged.class, this, this::onVarClientIntChanged);
|
||||
eventBus.subscribe(VarClientStrChanged.class, this, this::onVarClientStrChanged);
|
||||
}
|
||||
|
||||
private void addVarLog(VarType type, String name, int old, int neew)
|
||||
@@ -355,6 +347,10 @@ class VarInspector extends JFrame
|
||||
varcs = new HashMap<>(client.getVarcMap());
|
||||
|
||||
// eventBus.register(this);
|
||||
eventBus.subscribe(VarbitChanged.class, this, this::onVarbitChanged);
|
||||
eventBus.subscribe(VarClientIntChanged.class, this, this::onVarClientIntChanged);
|
||||
eventBus.subscribe(VarClientStrChanged.class, this, this::onVarClientStrChanged);
|
||||
|
||||
setVisible(true);
|
||||
toFront();
|
||||
repaint();
|
||||
|
||||
@@ -85,6 +85,8 @@ class WidgetInspector extends JFrame
|
||||
this.config = config;
|
||||
this.overlay = overlay;
|
||||
|
||||
eventBus.subscribe(ConfigChanged.class, this, this::onConfigChanged);
|
||||
|
||||
setTitle("RuneLite Widget Inspector");
|
||||
setIconImage(ClientUI.ICON);
|
||||
|
||||
@@ -164,7 +166,6 @@ class WidgetInspector extends JFrame
|
||||
|
||||
pack();
|
||||
|
||||
eventBus.subscribe(ConfigChanged.class, this, this::onConfigChanged);
|
||||
}
|
||||
|
||||
private void onConfigChanged(ConfigChanged ev)
|
||||
|
||||
Reference in New Issue
Block a user