Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrocontrollersDev committed Feb 29, 2024
1 parent 2035fae commit ef03a2b
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 25 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ preprocess {
version = mod_version
// Sets the group, make sure to change this to your own. It can be a website you own backwards or your GitHub username.
// e.g. com.github.<your username> or com.<your domain>
group = "com.github.microcontrollersdev"
group = "dev.microcontrollers"

// Sets the name of the output jar (the one you put in your mods folder and send to other people)
// It outputs all versions of the mod into the `build` directory.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod_name=Mixmetica
# Sets the id of your mod that mod loaders use to recognize it.
mod_id=mixmetica
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
mod_version=2.0.2
mod_version=2.0.3
# Sets the name of the jar file that you put in your 'mods' folder.
mod_archives_name=Mixmetica

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.github.microcontrollersdev.mixmetica;
package dev.microcontrollers.mixmetica;

import com.github.microcontrollersdev.mixmetica.config.MixmeticaConfig;
import net.minecraftforge.common.MinecraftForge;
import dev.microcontrollers.mixmetica.config.MixmeticaConfig;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;

@Mod(modid = "mixmetica", name = "Mixmetica", clientSideOnly = true)
public class Mixmetica {
public static MixmeticaConfig config;

@Mod.EventHandler
public void init(FMLInitializationEvent event) {
MixmeticaConfig.getInstance();
MinecraftForge.EVENT_BUS.register(this);
config = new MixmeticaConfig();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.microcontrollersdev.mixmetica.config;
package dev.microcontrollers.mixmetica.config;

import cc.polyfrost.oneconfig.config.Config;
import cc.polyfrost.oneconfig.config.annotations.*;
Expand All @@ -12,13 +12,6 @@
import java.net.URISyntaxException;

public class MixmeticaConfig extends Config {
@Exclude
private static MixmeticaConfig INSTANCE = null;

public static MixmeticaConfig getInstance() {
return INSTANCE == null ? (INSTANCE = new MixmeticaConfig()) : INSTANCE;
}

@Info(
text = "Mixmetica does not support animated capes. Only the first frame of the cape will show.",
type = InfoType.ERROR,
Expand All @@ -36,7 +29,7 @@ public static MixmeticaConfig getInstance() {

@Button(
name = "Change Cosmetics",
text = "Click!",
text = "Click",
description = "This will take you to the Cosmetica website where you can log in and manage your cosmetics.",
subcategory = "General"
)
Expand Down Expand Up @@ -80,7 +73,7 @@ public static MixmeticaConfig getInstance() {

@Button(
name = "Join the Cosmetica Discord",
text = "Click!",
text = "Click",
subcategory = "Socials"
)
Runnable cosmeticaDiscord = () -> {
Expand All @@ -95,7 +88,7 @@ public static MixmeticaConfig getInstance() {

@Button(
name = "Donate to Cosmetica",
text = "Click!",
text = "Click",
subcategory = "Socials"
)
Runnable cosmeticaKofi = () -> {
Expand All @@ -110,7 +103,7 @@ public static MixmeticaConfig getInstance() {

@Button(
name = "Join the Mixmetica Discord",
text = "Click!",
text = "Click",
subcategory = "Socials"
)
Runnable mixmeticaDiscord = () -> {
Expand All @@ -123,6 +116,21 @@ public static MixmeticaConfig getInstance() {
}
};

@Button(
name = "Check Out My Other Mods",
text = "Click",
subcategory = "Socials"
)
Runnable modrinthProfile = () -> {
if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
try {
Desktop.getDesktop().browse(new URI("https://modrinth.com/user/Microcontrollers"));
} catch (IOException | URISyntaxException e) {
throw new RuntimeException(e);
}
}
};

public MixmeticaConfig() {
super(new Mod("Mixmetica", ModType.UTIL_QOL, "/mixmetica.png"), "mixmetica.json");
initialize();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.microcontrollersdev.mixmetica.mixin;
package dev.microcontrollers.mixmetica.mixin;

import com.github.microcontrollersdev.mixmetica.config.MixmeticaConfig;
import dev.microcontrollers.mixmetica.config.MixmeticaConfig;
import org.spongepowered.asm.mixin.Dynamic;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.microcontrollersdev.mixmetica.mixin;
package dev.microcontrollers.mixmetica.mixin;

import com.github.microcontrollersdev.mixmetica.config.MixmeticaConfig;
import dev.microcontrollers.mixmetica.config.MixmeticaConfig;
import org.spongepowered.asm.mixin.Dynamic;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
Expand All @@ -21,4 +21,4 @@ else if (MixmeticaConfig.customInstance) {
}
return "http://23.95.137.176";
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/mixins.mixmetica.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"package": "com.github.microcontrollersdev.mixmetica.mixin",
"package": "dev.microcontrollers.mixmetica.mixin",
"refmap": "mixins.mixmetica.refmap.json",
"minVersion": "0.7",
"compatibilityLevel": "JAVA_8",
Expand Down

0 comments on commit ef03a2b

Please sign in to comment.