Skip to content

Commit

Permalink
warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Octol1ttle committed Apr 7, 2024
1 parent 4338dcf commit 612ce7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void onClientStarted(MinecraftClient mc) {
if (displayHost != null) {
throw new IllegalStateException();
}
displayHost = new HudDisplayHost(computerHost);
displayHost = new HudDisplayHost();
}

public static HudDisplayHost getDisplayHost() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import ru.octol1ttle.flightassistant.Dimensions;
import ru.octol1ttle.flightassistant.FlightAssistant;
import ru.octol1ttle.flightassistant.compatibility.ImmediatelyFastBatchingAccessor;
import ru.octol1ttle.flightassistant.computers.ComputerHost;
import ru.octol1ttle.flightassistant.config.FAConfig;
import ru.octol1ttle.flightassistant.config.HUDConfig;
import ru.octol1ttle.flightassistant.hud.api.IHudDisplay;
Expand All @@ -31,8 +30,8 @@
public class HudDisplayHost {
private final Dimensions dim = new Dimensions();

public HudDisplayHost(ComputerHost computerHost) {
HudDisplayRegistry.register(FlightAssistant.id("alert"), new AlertDisplay(dim, computerHost));
public HudDisplayHost() {
HudDisplayRegistry.register(FlightAssistant.id("alert"), new AlertDisplay(dim));
HudDisplayRegistry.register(FlightAssistant.id("altitude"), new AltitudeDisplay(dim));
HudDisplayRegistry.register(FlightAssistant.id("attitude"), new AttitudeDisplay(dim));
HudDisplayRegistry.register(FlightAssistant.id("elytra_health"), new ElytraHealthDisplay(dim));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import ru.octol1ttle.flightassistant.alerts.BaseAlert;
import ru.octol1ttle.flightassistant.alerts.ICenteredAlert;
import ru.octol1ttle.flightassistant.alerts.IECAMAlert;
import ru.octol1ttle.flightassistant.computers.ComputerHost;
import ru.octol1ttle.flightassistant.computers.TimeComputer;
import ru.octol1ttle.flightassistant.computers.safety.AlertController;
import ru.octol1ttle.flightassistant.config.FAConfig;
Expand All @@ -17,13 +16,11 @@

public class AlertDisplay implements IHudDisplay {
private final Dimensions dim;
private final ComputerHost host;
private final AlertController alert;
private final TimeComputer time;

public AlertDisplay(Dimensions dim, ComputerHost host) {
public AlertDisplay(Dimensions dim) {
this.dim = dim;
this.host = host;
this.alert = ComputerRegistry.resolve(AlertController.class);
this.time = ComputerRegistry.resolve(TimeComputer.class);
}
Expand Down

0 comments on commit 612ce7f

Please sign in to comment.