Skip to content

Commit

Permalink
Fix build (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Feb 7, 2024
1 parent a33f483 commit b557f23
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 37 deletions.
18 changes: 2 additions & 16 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,10 @@ enableGenericInjection = false
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass =
generateGradleTokenClass = com.gtnewhorizons.modularui.Tags

# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = GRADLETOKEN_VERSION

# [DEPRECATED] Mod ID replacement token.
gradleTokenModId = GRADLETOKEN_MODID

# [DEPRECATED] Mod name replacement token.
gradleTokenModName = GRADLETOKEN_MODNAME

# [DEPRECATED]
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...]).
# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile = Tags.java
gradleTokenVersion = VERSION

# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pluginManagement {
}

plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.8'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.9'
}


10 changes: 5 additions & 5 deletions src/main/java/com/gtnewhorizons/modularui/ModularUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@Mod(
modid = ModularUI.MODID,
version = Tags.VERSION,
name = Tags.MODNAME,
name = "ModularUI",
acceptedMinecraftVersions = "[1.7.10]",
dependencies = ModularUI.DEPENDENCIES,
guiFactory = ModularUI.GUI_FACTORY)
Expand All @@ -42,9 +42,9 @@ public class ModularUI {
+ "required-after:NotEnoughItems@[2.3.50-GTNH,);"
+ "after:hodgepodge@[2.0.0,);"
+ "before:gregtech";
public static final String GUI_FACTORY = Tags.GROUPNAME + ".config.GuiFactory";
public static final String GUI_FACTORY = "com.gtnewhorizons.modularui.config.GuiFactory";

public static final Logger logger = LogManager.getLogger(Tags.MODID);
public static final Logger logger = LogManager.getLogger(MODID);

public static final String MODID_GT5U = "gregtech";
public static final String MODID_GT6 = "gregapi_post";
Expand All @@ -59,8 +59,8 @@ public class ModularUI {

@SidedProxy(
modId = MODID,
clientSide = Tags.GROUPNAME + ".ClientProxy",
serverSide = Tags.GROUPNAME + ".CommonProxy")
clientSide = "com.gtnewhorizons.modularui.ClientProxy",
serverSide = "com.gtnewhorizons.modularui.CommonProxy")
public static CommonProxy proxy;

@Mod.EventHandler
Expand Down
12 changes: 0 additions & 12 deletions src/main/java/com/gtnewhorizons/modularui/Tags.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;

import com.gtnewhorizons.modularui.Tags;

import ru.timeconqueror.spongemixins.MinecraftURLClassPath;

public class MixinPlugin implements IMixinConfigPlugin {

private static final Logger LOG = LogManager.getLogger(Tags.MODID + " mixins");
private static final Logger LOG = LogManager.getLogger("ModularUI Mixins");
private static final Path MODS_DIRECTORY_PATH = new File(Launch.minecraftHome, "mods/").toPath();

@Override
Expand Down

0 comments on commit b557f23

Please sign in to comment.