Skip to content

Commit

Permalink
Change resourcepack zip name to avoid timestamp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tterrag1098 committed Dec 3, 2016
1 parent e96971f commit a85ed7b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.EnumMap;
import java.util.List;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.apache.commons.io.filefilter.IOFileFilter;

Expand Down Expand Up @@ -38,6 +39,7 @@
import com.google.gson.JsonObject;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import lombok.SneakyThrows;

public class ConfigHandler
{
Expand Down Expand Up @@ -110,9 +112,13 @@ public static void preInit(FMLPreInitializationEvent event)
assembleResourcePack();
}

@SneakyThrows
public static void assembleResourcePack()
{
assembler = new ResourcePackAssembler(new File(baseDir.getAbsolutePath() + "/CustomThings-Resourcepack"), "Custom Things Resource Pack", CustomThings.MODID);
File oldFolder = new File(baseDir.getAbsolutePath() + "/CustomThings-Resourcepack");
FileUtils.deleteDirectory(oldFolder);

assembler = new ResourcePackAssembler(new File(baseDir.getAbsolutePath() + "/CustomThingsResourcepack"), "Custom Things Resource Pack", CustomThings.MODID);
// .setHasPackPng(CustomThings.class);

addIcons(assembler);
Expand Down

0 comments on commit a85ed7b

Please sign in to comment.