Update to 1.13.2

This commit is contained in:
Marcel Konrad
2019-04-02 18:17:54 +02:00
parent eafef4ae54
commit e86d4f5c0c
204 changed files with 10130 additions and 9348 deletions

View File

@@ -8,10 +8,7 @@ import javax.swing.JFileChooser;
import javax.swing.JTextField;
import exopandora.worldhandler.Main;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class ChangeFolderListener implements ActionListener
{
private final JTextField textField;

View File

@@ -5,10 +5,8 @@ import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URI;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import exopandora.worldhandler.Main;
@SideOnly(Side.CLIENT)
public class ForumListener implements ActionListener
{
@Override
@@ -18,7 +16,7 @@ public class ForumListener implements ActionListener
{
try
{
Desktop.getDesktop().browse(new URI("$url"));
Desktop.getDesktop().browse(new URI(Main.URL));
}
catch(Exception e)
{

View File

@@ -12,10 +12,7 @@ import javax.swing.JOptionPane;
import javax.swing.JTextField;
import exopandora.worldhandler.Main;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class InstallListener implements ActionListener
{
private final JFrame parent;
@@ -37,7 +34,7 @@ public class InstallListener implements ActionListener
File mods = new File(directory, "mods");
File versions = new File(directory, "versions");
if(!this.isPartialFileNameInFolder(versions, "$mcversion", "Forge"))
if(!this.isPartialFileNameInFolder(versions, Main.MC_VERSION, "Forge"))
{
JOptionPane.showMessageDialog(null, "Please install Mineceaft Forge", null, JOptionPane.ERROR_MESSAGE);
}
@@ -54,8 +51,8 @@ public class InstallListener implements ActionListener
try
{
Path path = new File(InstallListener.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()).toPath();
Files.copy(path, new File(mods, "WorldHandler-$mcversion-$version-Universal.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
JOptionPane.showMessageDialog(null, Main.NAME + " $mcversion-$version has been successfully installed", null, JOptionPane.INFORMATION_MESSAGE);
Files.copy(path, new File(mods, "WorldHandler-" + Main.MC_VERSION + "-" + Main.MOD_VERSION + "-Universal.jar").toPath(), StandardCopyOption.REPLACE_EXISTING);
JOptionPane.showMessageDialog(null, Main.NAME + " " + Main.MC_VERSION + "-" + Main.MOD_VERSION + " has been successfully installed", null, JOptionPane.INFORMATION_MESSAGE);
}
catch(Exception e)
{

View File

@@ -18,10 +18,7 @@ import javax.swing.JPanel;
import javax.swing.JTextField;
import exopandora.worldhandler.Main;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class Window implements Runnable
{
private final JFrame frame = new JFrame();
@@ -29,7 +26,7 @@ public class Window implements Runnable
@Override
public void run()
{
String titleString = Main.NAME + " $mcversion-$version Installer";
String titleString = Main.NAME + " " + Main.MC_VERSION + "-" + Main.MOD_VERSION + " Installer";
this.frame.setResizable(false);
this.frame.setTitle(titleString);