Skip to content

Commit

Permalink
fix button icon missing
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Oct 21, 2023
1 parent 8cf80f4 commit 5c660f9
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Publish Release

on: [workflow_dispatch] # Manual trigger
on:
release:
types:
- published

permissions:
contents: write
Expand Down
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
## Change
- update mafglib to `0.1.9`
- change modid to `forgematica`
- fix button icon missing
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "dev.architectury.loom" version "1.2-SNAPSHOT"
id "dev.architectury.loom" version "1.3-SNAPSHOT"
id "maven-publish"
id 'com.modrinth.minotaur' version '2.+'
id 'net.darkhax.curseforgegradle' version '1.+'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/InitHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class InitHandler implements IInitializationHandler
@Override
public void registerModHandlers()
{
ConfigManager.getInstance().registerConfigHandler(Reference.MOD_ID, new Configs());
ConfigManager.getInstance().registerConfigHandler(Reference.NAMESPACE, new Configs());

InputEventHandler.getKeybindManager().registerKeybindProvider(InputHandler.getInstance());
InputEventHandler.getInputManager().registerKeyboardInputHandler(InputHandler.getInstance());
Expand Down
1 change: 1 addition & 0 deletions src/main/java/fi/dy/masa/litematica/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
public class Reference
{
public static final String MOD_ID = "forgematica";
public static final String NAMESPACE = "litematica";
public static final String MOD_NAME = "Forgematica";
public static final String MOD_VERSION = StringUtils.getModVersionString(MOD_ID);
}
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/config/Configs.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

public class Configs implements IConfigHandler
{
private static final String CONFIG_FILE_NAME = Reference.MOD_ID + ".json";
private static final String CONFIG_FILE_NAME = Reference.NAMESPACE + ".json";

public static class Generic
{
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/fi/dy/masa/litematica/data/DataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public static File getDefaultBaseSchematicDirectory()

public static File getCurrentConfigDirectory()
{
return new File(FileUtils.getConfigDirectory(), Reference.MOD_ID);
return new File(FileUtils.getConfigDirectory(), Reference.NAMESPACE);
}

public static File getSchematicsBaseDirectory()
Expand Down Expand Up @@ -506,7 +506,7 @@ private static File getCurrentStorageFile(boolean globalData)
Litematica.logger.warn("Failed to create the config directory '{}'", dir.getAbsolutePath());
}

return new File(dir, StringUtils.getStorageFileName(globalData, Reference.MOD_ID + "_", ".json", "default"));
return new File(dir, StringUtils.getStorageFileName(globalData, Reference.NAMESPACE + "_", ".json", "default"));
}

public static void setToolItem(String itemNameIn)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/gui/ButtonIcons.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public enum ButtonIcons implements IGuiIcon
SCHEMATIC_PROJECTS (102, 98, 14, 14),
TASK_MANAGER (102, 112, 14, 14),;

public static final Identifier TEXTURE = new Identifier(Reference.MOD_ID, "textures/gui/gui_widgets.png");
public static final Identifier TEXTURE = new Identifier(Reference.NAMESPACE, "textures/gui/gui_widgets.png");

private final int u;
private final int v;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/gui/GuiConfigs.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class GuiConfigs extends GuiConfigsBase
{
public GuiConfigs()
{
super(10, 50, Reference.MOD_ID, null, "litematica.gui.title.configs");
super(10, 50, Reference.NAMESPACE, null, "litematica.gui.title.configs");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public void actionPerformedWithButton(ButtonBase button, int mouseButton)
break;

case WRITE_TO_FILE:
File dir = new File(FileUtils.getConfigDirectory(), Reference.MOD_ID);
File dir = new File(FileUtils.getConfigDirectory(), Reference.NAMESPACE);
boolean csv = GuiBase.isShiftDown();
String ext = csv ? ".csv" : ".txt";
File file = DataDump.dumpDataToFile(dir, "material_list", ext, this.getMaterialListDump(materialList, csv).getLines());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/dy/masa/litematica/gui/Icons.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public enum Icons implements IGuiIcon, IFileBrowserIconProvider
ARROW_UP (209, 0, 15, 15),
ARROW_DOWN (209, 15, 15, 15);

public static final Identifier TEXTURE = new Identifier(Reference.MOD_ID, "textures/gui/gui_widgets.png");
public static final Identifier TEXTURE = new Identifier(Reference.NAMESPACE, "textures/gui/gui_widgets.png");

private final int u;
private final int v;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

public class WorldSchematic extends World
{
protected static final RegistryKey<World> REGISTRY_KEY = RegistryKey.of(RegistryKeys.WORLD, new Identifier(Reference.MOD_ID, "schematic_world"));
protected static final RegistryKey<World> REGISTRY_KEY = RegistryKey.of(RegistryKeys.WORLD, new Identifier(Reference.NAMESPACE, "schematic_world"));

protected final MinecraftClient mc;
protected final ChunkManagerSchematic chunkManagerSchematic;
Expand Down

0 comments on commit 5c660f9

Please sign in to comment.