Skip to content

Commit e06a6ca

Browse files
committed
Display HUD overlay with always-on debug elements but not full debug screen
1 parent e90cc89 commit e06a6ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/com/chaosthedude/explorerscompass/mixin

‎src/main/java/com/chaosthedude/explorerscompass/mixin/GuiMixin.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class GuiMixin {
3737

3838
@Inject(method = "render(Lnet/minecraft/client/gui/GuiGraphics;Lnet/minecraft/client/DeltaTracker;)V", at = @At(value = "TAIL"))
3939
private void renderCompassInfo(GuiGraphics guiGraphics, DeltaTracker deltaTracker, CallbackInfo info) {
40-
if (minecraft.player != null && !minecraft.options.hideGui && !minecraft.getDebugOverlay().showDebugScreen() && (minecraft.screen == null || (ExplorersCompassConfig.displayWithChatOpen && minecraft.screen instanceof ChatScreen))) {
40+
if (minecraft.player != null && !minecraft.options.hideGui && !minecraft.debugEntries.isOverlayVisible() && (minecraft.screen == null || (ExplorersCompassConfig.displayWithChatOpen && minecraft.screen instanceof ChatScreen))) {
4141
final Player player = minecraft.player;
4242
final ItemStack stack = ItemUtils.getHeldItem(player, ExplorersCompass.EXPLORERS_COMPASS_ITEM);
4343
if (stack != null && stack.getItem() instanceof ExplorersCompassItem) {

0 commit comments

Comments
 (0)