diff --git a/gradle.properties b/gradle.properties index bfbf9dbc..05ebdc13 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ modName = Schematica # This is a case-sensitive string to identify your mod. Convention is to use lower case. -modId = Schematica +modId = SchematicaFairplay modGroup = com.github.lunatrius.schematica @@ -34,7 +34,7 @@ developmentEnvironmentUserName = Developer # version in @Mod([...], version = VERSION, [...]) # Leave these properties empty to skip individual token replacements replaceGradleTokenInFile = Reference.java -gradleTokenModId = +gradleTokenModId = GRADLETOKEN_MODID gradleTokenModName = gradleTokenVersion = GRADLETOKEN_VERSION gradleTokenGroupName = diff --git a/src/main/java/com/github/lunatrius/schematica/client/gui/control/GuiSchematicControl.java b/src/main/java/com/github/lunatrius/schematica/client/gui/control/GuiSchematicControl.java index 080cefcc..402d29e1 100644 --- a/src/main/java/com/github/lunatrius/schematica/client/gui/control/GuiSchematicControl.java +++ b/src/main/java/com/github/lunatrius/schematica/client/gui/control/GuiSchematicControl.java @@ -12,6 +12,8 @@ import com.github.lunatrius.schematica.proxy.ClientProxy; import com.github.lunatrius.schematica.reference.Constants; import com.github.lunatrius.schematica.reference.Names; +import com.github.lunatrius.schematica.reference.Reference; +import java.util.Objects; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; @@ -147,7 +149,8 @@ public void initGui() { this.btnFlip.enabled = false; this.btnRotate.enabled = this.schematic != null; this.btnMaterials.enabled = this.schematic != null; - this.btnPrint.enabled = this.schematic != null && this.printer.isEnabled(); + this.btnPrint.enabled = + Objects.equals(Reference.MODID, "Schematica") && (this.schematic != null && this.printer.isEnabled()); this.btnSaveCoordinates.enabled = this.schematic != null; diff --git a/src/main/java/com/github/lunatrius/schematica/reference/Reference.java b/src/main/java/com/github/lunatrius/schematica/reference/Reference.java index aa80da60..6904da7a 100644 --- a/src/main/java/com/github/lunatrius/schematica/reference/Reference.java +++ b/src/main/java/com/github/lunatrius/schematica/reference/Reference.java @@ -4,7 +4,7 @@ import org.apache.logging.log4j.Logger; public class Reference { - public static final String MODID = "Schematica"; + public static final String MODID = "GRADLETOKEN_MODID"; public static final String NAME = "Schematica"; public static final String VERSION = "GRADLETOKEN_VERSION"; public static final String DEPENDENCIES = "required-after:LunatriusCore;";