File tree 3 files changed +14
-7
lines changed
common/src/main/java/dev/ftb/mods/ftbchunks/client
3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 2001.3.1]
8
+
9
+ ### Fixed
10
+ * Fixed the sidebar map buttons ignoring any GameStages restrictions in force
11
+
7
12
## [ 2001.3.0]
8
13
9
14
### Changed
Original file line number Diff line number Diff line change @@ -321,12 +321,14 @@ public boolean skipBlock(BlockState state) {
321
321
}
322
322
323
323
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
+ }
330
332
}
331
333
332
334
return EventResult .pass ();
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ org.gradle.daemon=false
5
5
mod_id =ftbchunks
6
6
archives_base_name =ftb-chunks
7
7
maven_group =dev.ftb.mods
8
- mod_version =2001.3.0
8
+ mod_version =2001.3.1
9
9
mod_author =FTB Team
10
10
11
11
minecraft_version =1.20.1
You can’t perform that action at this time.
0 commit comments