File tree 2 files changed +9
-6
lines changed
common/src/main/java/dev/ftb/mods/ftbchunks/client
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
9
9
### Fixed
10
10
* Fixed server crash related to long range player tracking
11
+ * Fixed the sidebar map buttons ignoring any GameStages restrictions in force
11
12
12
13
## [ 2004.1.2]
13
14
Original file line number Diff line number Diff line change @@ -319,12 +319,14 @@ public boolean skipBlock(BlockState state) {
319
319
}
320
320
321
321
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
+ }
328
330
}
329
331
330
332
return EventResult .pass ();
You can’t perform that action at this time.
0 commit comments