Skip to content
This repository has been archived by the owner on Dec 24, 2023. It is now read-only.

Commit

Permalink
Fix a bug (?) where failing to get a request amkes minecraft die
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed May 6, 2021
1 parent 3322615 commit f45b6b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modGroup=net.wyvest
modVersion=2.0.0
modVersion=2.0.1
modBaseName=TimerHUD
forgeVersion=1.8.9-11.15.1.2318-1.8.9
mcpVersion=stable_22
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/net/wyvest/timer/TimerHUD.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
public class TimerHUD {

public static final String modName = "TimerHUD";
public static final String version = "2.0.0";
public static final String version = "2.0.1";
public static final String modId = "timer";

@Mod.EventHandler
Expand All @@ -48,7 +48,9 @@ protected void onInit(FMLInitializationEvent event) {

@Mod.EventHandler
protected void onPostInit(FMLPostInitializationEvent event) {
if (!VersionChecker.version.matches(version)) Notifications.push("TimerHUD", "Your version of TimerHUD is outdated. Please update to the latest version by clicking here.", this::openTab);
try {
if (!VersionChecker.version.matches(version)) Notifications.push("TimerHUD", "Your version of TimerHUD is outdated. Please update to the latest version by clicking here.", this::openTab);
} catch (Exception e) {e.printStackTrace();}
}

void openTab() {
Expand Down

0 comments on commit f45b6b1

Please sign in to comment.