Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
cyilin committed Jan 7, 2017
1 parent 9f4a565 commit 60601ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zyin/zyinhud/gui/GuiZyinHUDOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public static void InitGuiEventPost(InitGuiEvent.Post event) {
*/
public static void ActionPerformedEventPost(ActionPerformedEvent.Post event) {
if (event.getGui() instanceof GuiOptions) {
if (event.getButton().id == zyinHudOptionsButton.id) {
if (zyinHudOptionsButton != null && event.getButton().id == zyinHudOptionsButton.id) {
Minecraft.getMinecraft().displayGuiScreen(new GuiZyinHUDOptions(event.getGui()));
}
}
Expand Down

0 comments on commit 60601ec

Please sign in to comment.