Memchik
This commit is contained in:
@@ -46,6 +46,7 @@ public class OyVey implements ModInitializer, ClientModInitializer {
|
||||
|
||||
configManager = new ConfigManager();
|
||||
configManager.load();
|
||||
colorManager.init();
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> configManager.save()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,11 @@ public class ColorManager {
|
||||
private float alpha = 1.0f;
|
||||
private Color color = new Color(this.red, this.green, this.blue, this.alpha);
|
||||
|
||||
public void init() {
|
||||
ClickGui ui = ClickGui.getInstance();
|
||||
setColor(ui.red.getValue(), ui.green.getValue(), ui.blue.getValue(), ui.hoverAlpha.getValue());
|
||||
}
|
||||
|
||||
public Color getColor() {
|
||||
return this.color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user