Skip to content

Commit

Permalink
update gradle.properies + tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis committed Jun 29, 2024
1 parent a0b0625 commit a8baa0b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 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
10 changes: 6 additions & 4 deletions src/main/java/com/caedis/duradisplay/DuraDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
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,);")
public class DuraDisplay {
public final static String MODID = "duradisplay";
public final static String NAME = "DuraDisplay";

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

@SuppressWarnings("unused")
@Mod.EventHandler
Expand All @@ -45,7 +47,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 @@ -3,6 +3,7 @@
import java.util.ArrayList;
import java.util.List;

import com.caedis.duradisplay.DuraDisplay;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigElement;
import net.minecraftforge.common.config.Configuration;
Expand All @@ -20,7 +21,7 @@ public GuiConfigDuraDisplay(GuiScreen parent) {
super(
parent,
getCategories(),
Tags.MODID,
DuraDisplay.MODID,
"general",
false,
false,
Expand Down

0 comments on commit a8baa0b

Please sign in to comment.