Skip to content

Commit

Permalink
Merge pull request #283 from FTBTeam/1.20.4/dev
Browse files Browse the repository at this point in the history
1.20.4/dev
  • Loading branch information
MichaelHillcox authored Jun 10, 2024
2 parents c61673f + cefd90c commit fa36d57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
* Fixed server crash related to long range player tracking
* Fixed the sidebar map buttons ignoring any GameStages restrictions in force

## [2004.1.2]

Expand Down
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 fa36d57

Please sign in to comment.