Skip to content

Commit

Permalink
1.8.8 Fairplay
Browse files Browse the repository at this point in the history
  • Loading branch information
mist475 committed Jul 5, 2022
1 parent 7335b59 commit cc38250
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;";
Expand Down

0 comments on commit cc38250

Please sign in to comment.