Skip to content

Commit

Permalink
Fixed CT crashing MC with ReplayMod
Browse files Browse the repository at this point in the history
Loading a replay in ReplayMod no longer crashes CT and MC
  • Loading branch information
kerbybit committed Jan 23, 2017
1 parent b564a6d commit 4b2ec73
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Expand Up @@ -73,7 +73,7 @@ public void run() {
}
}

web = new URL(global.hasWatermarkURL);
web = new URL(global.hasWatermarkURL+"?send="+Minecraft.getMinecraft().thePlayer.getUniqueID());
fis = web.openStream();
lines = new ArrayList<String>();
bufferedReader = new BufferedReader(new InputStreamReader(fis,"UTF-8"));
Expand Down
Expand Up @@ -119,8 +119,13 @@ public void RenderGameOverlayEvent(RenderGameOverlayEvent event) {
DisplayOverlay.openGui();

FileHandler.firstFileLoad();

TriggerHandler.worldLoadTriggers();

try {
TriggerHandler.worldLoadTriggers();
} catch (NullPointerException e) {
//do nothing
}

TriggerHandler.newDayTriggers();
global.worldLoaded=false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Expand Up @@ -3,7 +3,7 @@
"modid": "CT",
"name": "ChatTriggers",
"description": "Customize your chat",
"version": "4.1.3",
"version": "4.1.7",
"mcversion": "1.8.9",
"url": "http://kerbybit.github.io/ChatTriggers",
"updateUrl": "",
Expand Down

0 comments on commit 4b2ec73

Please sign in to comment.