Skip to content

Commit

Permalink
fix: opening map via sidebar button was ignoring gamestage limits
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed May 28, 2024
1 parent d47cdb0 commit cc79233
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,14 @@ public boolean skipBlock(BlockState state) {
}

public EventResult customClick(CustomClickEvent event) {
if (event.id().equals(BUTTON_ID_MAP)) {
openGui();
return EventResult.interruptTrue();
} else if (event.id().equals(BUTTON_ID_CLAIM)) {
ChunkScreen.openChunkScreen();
return EventResult.interruptTrue();
if (FTBChunksWorldConfig.playerHasMapStage(Minecraft.getInstance().player)) {
if (event.id().equals(BUTTON_ID_MAP)) {
openGui();
return EventResult.interruptTrue();
} else if (event.id().equals(BUTTON_ID_CLAIM)) {
ChunkScreen.openChunkScreen();
return EventResult.interruptTrue();
}
}

return EventResult.pass();
Expand Down

0 comments on commit cc79233

Please sign in to comment.