Skip to content

Commit 505ef90

Browse files
authored
Merge pull request #281 from FTBTeam/1.20.1/dev
1.20.1/dev
2 parents 349944c + f0facb4 commit 505ef90

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2001.3.1]
8+
9+
### Fixed
10+
* Fixed the sidebar map buttons ignoring any GameStages restrictions in force
11+
712
## [2001.3.0]
813

914
### Changed

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

+8-6
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,14 @@ public boolean skipBlock(BlockState state) {
321321
}
322322

323323
public EventResult customClick(CustomClickEvent event) {
324-
if (event.id().equals(BUTTON_ID_MAP)) {
325-
openGui();
326-
return EventResult.interruptTrue();
327-
} else if (event.id().equals(BUTTON_ID_CLAIM)) {
328-
ChunkScreen.openChunkScreen();
329-
return EventResult.interruptTrue();
324+
if (FTBChunksWorldConfig.playerHasMapStage(Minecraft.getInstance().player)) {
325+
if (event.id().equals(BUTTON_ID_MAP)) {
326+
openGui();
327+
return EventResult.interruptTrue();
328+
} else if (event.id().equals(BUTTON_ID_CLAIM)) {
329+
ChunkScreen.openChunkScreen();
330+
return EventResult.interruptTrue();
331+
}
330332
}
331333

332334
return EventResult.pass();

Diff for: gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.daemon=false
55
mod_id=ftbchunks
66
archives_base_name=ftb-chunks
77
maven_group=dev.ftb.mods
8-
mod_version=2001.3.0
8+
mod_version=2001.3.1
99
mod_author=FTB Team
1010

1111
minecraft_version=1.20.1

0 commit comments

Comments
 (0)