mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-10 12:09:27 +02:00
Remove reset on WorldLoadEvent
This actually works, according to playtesting, unlike the last PR
This commit is contained in:
@@ -3,29 +3,29 @@ package UnitInfo.core;
|
||||
import UnitInfo.ui.FreeBar;
|
||||
import arc.Core;
|
||||
import arc.Events;
|
||||
import mindustry.Vars;
|
||||
import mindustry.game.EventType.*;
|
||||
import mindustry.gen.Groups;
|
||||
import mindustry.mod.Mod;
|
||||
|
||||
public class Main extends Mod {
|
||||
public static Setting settingAdder = new Setting();
|
||||
public static HudUi hud = new HudUi();
|
||||
|
||||
public Main(){
|
||||
@Override
|
||||
public void init(){
|
||||
Events.on(ClientLoadEvent.class, e -> {
|
||||
HudUi hud = new HudUi();
|
||||
hud.reset();
|
||||
|
||||
hud = new HudUi();
|
||||
settingAdder.init();
|
||||
hud.addTable();
|
||||
hud.addCoreTable();
|
||||
});
|
||||
|
||||
Events.on(WorldLoadEvent.class, e -> {
|
||||
HudUi hud = new HudUi();
|
||||
hud.addWaveTable();
|
||||
});
|
||||
|
||||
Events.on(ResetEvent.class, e -> {
|
||||
HudUi hud = new HudUi();
|
||||
hud.reset();
|
||||
|
||||
hud = new HudUi();
|
||||
hud.addWaveTable();
|
||||
});
|
||||
|
||||
@@ -45,10 +45,6 @@ public class Main extends Mod {
|
||||
*/
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadContent(){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user