Skip to content

Commit fa36d57

Browse files
Merge pull request #283 from FTBTeam/1.20.4/dev
1.20.4/dev
2 parents c61673f + cefd90c commit fa36d57

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

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

1213
## [2004.1.2]
1314

Diff for: common/src/main/java/dev/ftb/mods/ftbchunks/client/FTBChunksClient.java

+8-6
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,14 @@ public boolean skipBlock(BlockState state) {
319319
}
320320

321321
public EventResult customClick(CustomClickEvent event) {
322-
if (event.id().equals(BUTTON_ID_MAP)) {
323-
openGui();
324-
return EventResult.interruptTrue();
325-
} else if (event.id().equals(BUTTON_ID_CLAIM)) {
326-
ChunkScreen.openChunkScreen();
327-
return EventResult.interruptTrue();
322+
if (FTBChunksWorldConfig.playerHasMapStage(Minecraft.getInstance().player)) {
323+
if (event.id().equals(BUTTON_ID_MAP)) {
324+
openGui();
325+
return EventResult.interruptTrue();
326+
} else if (event.id().equals(BUTTON_ID_CLAIM)) {
327+
ChunkScreen.openChunkScreen();
328+
return EventResult.interruptTrue();
329+
}
328330
}
329331

330332
return EventResult.pass();

0 commit comments

Comments
 (0)