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 Jun 10, 2024
1 parent 7e17f98 commit 249bb8b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,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 249bb8b

Please sign in to comment.