diff options
author | CuzImClicks <bruno778.whiteelfie@gmail.com> | 2021-03-16 19:08:48 +0100 |
---|---|---|
committer | CuzImClicks <bruno778.whiteelfie@gmail.com> | 2021-03-16 19:08:48 +0100 |
commit | 894b747c4ae2b2da7c4a12142cf69bd2fef2cb7a (patch) | |
tree | 6acb4f56e3acca0536f2365647b07d04ac108782 /src/main/java/DefenitlyNotAJoikedInstallerFrame.java | |
parent | dc597028f0575eaca3b71dd7139ca62fc56e4a24 (diff) | |
download | SkyblockMod-894b747c4ae2b2da7c4a12142cf69bd2fef2cb7a.tar.gz SkyblockMod-894b747c4ae2b2da7c4a12142cf69bd2fef2cb7a.tar.bz2 SkyblockMod-894b747c4ae2b2da7c4a12142cf69bd2fef2cb7a.zip |
implemented requested changes
Diffstat (limited to 'src/main/java/DefenitlyNotAJoikedInstallerFrame.java')
-rw-r--r-- | src/main/java/DefenitlyNotAJoikedInstallerFrame.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/DefenitlyNotAJoikedInstallerFrame.java b/src/main/java/DefenitlyNotAJoikedInstallerFrame.java index e4c9b64..3aabca8 100644 --- a/src/main/java/DefenitlyNotAJoikedInstallerFrame.java +++ b/src/main/java/DefenitlyNotAJoikedInstallerFrame.java @@ -1,3 +1,5 @@ +import me.Danker.DankersSkyblockMod; + import javax.imageio.ImageIO; import javax.swing.*; import java.awt.*; @@ -424,7 +426,8 @@ public class DefenitlyNotAJoikedInstallerFrame extends JFrame implements ActionL inSubFolder = true; } - File newFile = new File(modsFolder, "Danker's Skyblock Mod-"+getVersionFromMcmodInfo()+".jar"); + File newFile = new File(modsFolder, getVersionFromMcmodInfo() + ".Danker.s.Skyblock.Mod.-." + DankersSkyblockMod.VERSION + ".jar"); + if (thisFile.equals(newFile)) { showErrorMessage("You are opening this file from where the file should be installed... there's nothing to be done!"); return; @@ -462,7 +465,7 @@ public class DefenitlyNotAJoikedInstallerFrame extends JFrame implements ActionL return; } - showMessage("Danker's SkyblockMod has been successfully installed into your mods folder."); + showMessage("Danker's Skyblock Mod has been successfully installed into your mods folder."); dispose(); System.exit(0); } |