diff --git a/src/main/java/aeronicamc/mods/mxtune/gui/OverlayManagerScreen.java b/src/main/java/aeronicamc/mods/mxtune/gui/OverlayManagerScreen.java index c8df711f..1de440b8 100644 --- a/src/main/java/aeronicamc/mods/mxtune/gui/OverlayManagerScreen.java +++ b/src/main/java/aeronicamc/mods/mxtune/gui/OverlayManagerScreen.java @@ -16,7 +16,7 @@ public class OverlayManagerScreen extends MXScreen implements IItemOverlayPosition { private final OverlayInstance[] visible = { null, null }; - private Screen parent = null; + private final Screen parent; private IOverlayItem.Position xPosVenueTool; private int yPosVenueTool; private double lastYPosVenueTool = -1D; diff --git a/src/main/java/aeronicamc/mods/mxtune/gui/widget/MXSlider.java b/src/main/java/aeronicamc/mods/mxtune/gui/widget/MXSlider.java index 8f88113b..928e6cd0 100644 --- a/src/main/java/aeronicamc/mods/mxtune/gui/widget/MXSlider.java +++ b/src/main/java/aeronicamc/mods/mxtune/gui/widget/MXSlider.java @@ -12,7 +12,7 @@ public class MXSlider extends AbstractSlider implements ILayout, IHooverText { protected int padding = 0; private final List hooverTexts = new ArrayList<>(); private boolean hooverTextsOverride; - private IPressable onPress; + private final IPressable onPress; private ITextComponent sliderText; public MXSlider(IPressable onPress) { @@ -21,10 +21,6 @@ public MXSlider(IPressable onPress) { sliderText = StringTextComponent.EMPTY; } - public MXSlider(int pX, int pY, int pWidth, int pHeight, ITextComponent pMessage, double pValue) { - super(pX, pY, pWidth, pHeight, pMessage, pValue); - } - @Override public void setMessage(ITextComponent pMessage) { sliderText = pMessage;