Improve exception logging
This commit is contained in:
@@ -3,6 +3,7 @@ package exopandora.worldhandler.helper;
|
|||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
|
|
||||||
import exopandora.worldhandler.Main;
|
import exopandora.worldhandler.Main;
|
||||||
|
import exopandora.worldhandler.WorldHandler;
|
||||||
import exopandora.worldhandler.builder.impl.BuilderDifficulty;
|
import exopandora.worldhandler.builder.impl.BuilderDifficulty;
|
||||||
import exopandora.worldhandler.builder.impl.BuilderDifficulty.EnumDifficulty;
|
import exopandora.worldhandler.builder.impl.BuilderDifficulty.EnumDifficulty;
|
||||||
import exopandora.worldhandler.builder.impl.BuilderGamemode;
|
import exopandora.worldhandler.builder.impl.BuilderGamemode;
|
||||||
@@ -47,14 +48,7 @@ public class ActionHelper
|
|||||||
|
|
||||||
public static void changeTab(Content content, int index)
|
public static void changeTab(Content content, int index)
|
||||||
{
|
{
|
||||||
try
|
ActionHelper.tryRun(() -> Minecraft.getInstance().displayGuiScreen(new GuiWorldHandler(content.getCategory().getContent(index))));
|
||||||
{
|
|
||||||
Minecraft.getInstance().displayGuiScreen(new GuiWorldHandler(content.getCategory().getContent(index)));
|
|
||||||
}
|
|
||||||
catch(Exception e)
|
|
||||||
{
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void timeDawn()
|
public static void timeDawn()
|
||||||
@@ -153,7 +147,7 @@ public class ActionHelper
|
|||||||
message.setStyle(new Style().setColor(net.minecraft.util.text.TextFormatting.RED));
|
message.setStyle(new Style().setColor(net.minecraft.util.text.TextFormatting.RED));
|
||||||
|
|
||||||
Minecraft.getInstance().ingameGUI.addChatMessage(ChatType.SYSTEM, message);
|
Minecraft.getInstance().ingameGUI.addChatMessage(ChatType.SYSTEM, message);
|
||||||
e.printStackTrace();
|
WorldHandler.LOGGER.throwing(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user