Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gradle.properies + tags #19

Merged
merged 3 commits into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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