Skip to content

Commit

Permalink
Merge pull request #19 from GTNewHorizons/fixes
Browse files Browse the repository at this point in the history
update gradle.properies + tags
  • Loading branch information
Dream-Master authored Jun 29, 2024
2 parents a0b0625 + 27680b9 commit 9bb17bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ enableModernJavaSyntax = true

# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
enableGenericInjection = false
enableGenericInjection = true

# 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.
Expand All @@ -56,13 +56,13 @@ generateGradleTokenClass = com.caedis.duradisplay.Tags
gradleTokenVersion = VERSION

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

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

# [DEPRECATED] Mod Group replacement token.
gradleTokenGroupName = GROUPNAME
#gradleTokenGroupName = GROUPNAME

# [DEPRECATED]
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
Expand Down
13 changes: 8 additions & 5 deletions src/main/java/com/caedis/duradisplay/DuraDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@
import cpw.mods.fml.common.eventhandler.SubscribeEvent;

@Mod(
modid = Tags.MODID,
modid = DuraDisplay.MODID,
version = Tags.VERSION,
name = Tags.MODNAME,
name = DuraDisplay.NAME,
acceptedMinecraftVersions = "[1.7.10]",
guiFactory = "com.caedis.duradisplay.config.GuiFactory",
acceptableRemoteVersions = "*",
dependencies = "after:gregtech@[5.09.43.63,);" + " after:EnderIO@[2.4.18,);")
dependencies = "after:gregtech;" + " after:EnderIO@[2.4.18,);")
public class DuraDisplay {

public static final Logger LOG = LogManager.getLogger(Tags.MODID);
public final static String MODID = "duradisplay";
public final static String NAME = "DuraDisplay";

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

@SuppressWarnings("unused")
@Mod.EventHandler
Expand All @@ -45,7 +48,7 @@ public void init(FMLInitializationEvent event) {
@SuppressWarnings("unused")
@SubscribeEvent
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
if (event.modID.equals(Tags.MODID)) {
if (event.modID.equals(DuraDisplay.MODID)) {
DuraDisplayConfig.config.save();
DuraDisplayConfig.reloadConfigObject();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;

import com.caedis.duradisplay.Tags;
import com.caedis.duradisplay.DuraDisplay;
import com.caedis.duradisplay.overlay.OverlayInfo;

import cpw.mods.fml.client.config.GuiConfig;
Expand All @@ -20,7 +20,7 @@ public GuiConfigDuraDisplay(GuiScreen parent) {
super(
parent,
getCategories(),
Tags.MODID,
DuraDisplay.MODID,
"general",
false,
false,
Expand Down

0 comments on commit 9bb17bb

Please sign in to comment.