From 35616ab03fd105b025cbf7d59f3dd2ed2492650b Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Tue, 28 May 2024 08:31:44 +0100 Subject: [PATCH 1/2] fix: opening map via sidebar button was ignoring gamestage limits https://github.com/FTBTeam/FTB-Mods-Issues/issues/185 --- .../ftb/mods/ftbchunks/client/FTBChunksClient.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/dev/ftb/mods/ftbchunks/client/FTBChunksClient.java b/common/src/main/java/dev/ftb/mods/ftbchunks/client/FTBChunksClient.java index 9f1e6561..51fb9412 100644 --- a/common/src/main/java/dev/ftb/mods/ftbchunks/client/FTBChunksClient.java +++ b/common/src/main/java/dev/ftb/mods/ftbchunks/client/FTBChunksClient.java @@ -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(); From cefd90cfa1afbdcc4d0cded257b7ff521f59b2ee Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Mon, 10 Jun 2024 10:33:51 +0100 Subject: [PATCH 2/2] chore: changelog updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcf4731e..a489f08c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]