mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
Reset HudUi on ResetEvent
Resets HudUi on ResetEvent, to avoid it copying itself over itself in the campaign.
This commit is contained in:
@@ -24,6 +24,11 @@ public class Main extends Mod {
|
||||
hud.addWaveTable();
|
||||
});
|
||||
|
||||
Events.on(ResetEvent.class, e -> {
|
||||
HudUi hud = new HudUi();
|
||||
hud.addWaveTable();
|
||||
});
|
||||
|
||||
Events.run(Trigger.draw, () -> {
|
||||
if(Core.settings.getBool("unithealthui"))
|
||||
Groups.unit.each(unit -> new FreeBar().draw(unit));
|
||||
|
||||
Reference in New Issue
Block a user