删除部分调试信息

This commit is contained in:
GaLicn 2025-09-06 22:14:02 +08:00
parent 246de29378
commit b0bb51f8f6
4 changed files with 11 additions and 11 deletions

View File

@ -64,7 +64,7 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
this.eap$AdvancedBlockingEnabled ? YesNo.YES : YesNo.NO, this.eap$AdvancedBlockingEnabled ? YesNo.YES : YesNo.NO,
(btn, backwards) -> { (btn, backwards) -> {
// 不做本地切换点击仅发送自定义C2S显示由@GuiSync回传 // 不做本地切换点击仅发送自定义C2S显示由@GuiSync回传
ExtendedAELogger.LOGGER.debug("[EAP] Click advanced blocking toggle: send C2S"); // debug removed
var conn = Minecraft.getInstance().getConnection(); var conn = Minecraft.getInstance().getConnection();
if (conn != null) conn.send(ToggleAdvancedBlockingC2SPacket.INSTANCE); if (conn != null) conn.send(ToggleAdvancedBlockingC2SPacket.INSTANCE);
} }
@ -80,7 +80,7 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
} }
}; };
// 初始化后立刻对齐当前@GuiSync状态避免首帧显示不一致 // 初始化后立刻对齐当前@GuiSync状态避免首帧显示不一致
ExtendedAELogger.LOGGER.debug("[EAP] Screen init: initial synced={} -> set button", this.eap$AdvancedBlockingEnabled); // debug removed
this.eap$AdvancedBlockingToggle.set(this.eap$AdvancedBlockingEnabled ? YesNo.YES : YesNo.NO); this.eap$AdvancedBlockingToggle.set(this.eap$AdvancedBlockingEnabled ? YesNo.YES : YesNo.NO);
this.addToLeftToolbar(this.eap$AdvancedBlockingToggle); this.addToLeftToolbar(this.eap$AdvancedBlockingToggle);
@ -98,7 +98,7 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
Settings.BLOCKING_MODE, Settings.BLOCKING_MODE,
this.eap$SmartDoublingEnabled ? YesNo.YES : YesNo.NO, this.eap$SmartDoublingEnabled ? YesNo.YES : YesNo.NO,
(btn, backwards) -> { (btn, backwards) -> {
ExtendedAELogger.LOGGER.debug("[EAP] Click smart doubling toggle: send C2S"); // debug removed
var conn = Minecraft.getInstance().getConnection(); var conn = Minecraft.getInstance().getConnection();
if (conn != null) conn.send(ToggleSmartDoublingC2SPacket.INSTANCE); if (conn != null) conn.send(ToggleSmartDoublingC2SPacket.INSTANCE);
} }
@ -126,7 +126,7 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
if (this.menu instanceof PatternProviderMenuAdvancedSync sync) { if (this.menu instanceof PatternProviderMenuAdvancedSync sync) {
desired = sync.eap$getAdvancedBlockingSynced(); desired = sync.eap$getAdvancedBlockingSynced();
} }
ExtendedAELogger.LOGGER.debug("[EAP] updateBeforeRender tick (adv): desired={}", desired); // debug removed
this.eap$AdvancedBlockingEnabled = desired; this.eap$AdvancedBlockingEnabled = desired;
this.eap$AdvancedBlockingToggle.set(desired ? YesNo.YES : YesNo.NO); this.eap$AdvancedBlockingToggle.set(desired ? YesNo.YES : YesNo.NO);
} }
@ -136,7 +136,7 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
if (this.menu instanceof PatternProviderMenuDoublingSync sync2) { if (this.menu instanceof PatternProviderMenuDoublingSync sync2) {
desired2 = sync2.eap$getSmartDoublingSynced(); desired2 = sync2.eap$getSmartDoublingSynced();
} }
ExtendedAELogger.LOGGER.debug("[EAP] updateBeforeRender tick (dbl): desired={}", desired2); // debug removed
this.eap$SmartDoublingEnabled = desired2; this.eap$SmartDoublingEnabled = desired2;
this.eap$SmartDoublingToggle.set(desired2 ? YesNo.YES : YesNo.NO); this.eap$SmartDoublingToggle.set(desired2 ? YesNo.YES : YesNo.NO);
} }
@ -145,7 +145,7 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
try { try {
((ExPatternButtonsAccessor) this).eap$updateButtonsLayout(); ((ExPatternButtonsAccessor) this).eap$updateButtonsLayout();
} catch (Throwable t) { } catch (Throwable t) {
ExtendedAELogger.LOGGER.debug("[EAP] updateButtonsLayout skipped: {}", t.toString()); // debug removed
} }
} }
} }

View File

@ -35,7 +35,7 @@ public abstract class PatternProviderMenuAdvancedMixin implements PatternProvide
var l = this.logic; var l = this.logic;
if (l instanceof AdvancedBlockingHolder holder) { if (l instanceof AdvancedBlockingHolder holder) {
this.eap$AdvancedBlocking = holder.eap$getAdvancedBlocking(); this.eap$AdvancedBlocking = holder.eap$getAdvancedBlocking();
ExtendedAELogger.LOGGER.debug("[EAP] Menu broadcastChanges HEAD: eap$AdvancedBlocking={}", this.eap$AdvancedBlocking); // debug removed
} }
} }
} }
@ -54,4 +54,3 @@ public abstract class PatternProviderMenuAdvancedMixin implements PatternProvide
private void eap$debug_getShowInAccessTerminal(CallbackInfoReturnable<?> cir) { private void eap$debug_getShowInAccessTerminal(CallbackInfoReturnable<?> cir) {
} }
} }

View File

@ -30,7 +30,7 @@ public abstract class PatternProviderMenuDoublingMixin implements PatternProvide
var l = this.logic; var l = this.logic;
if (l instanceof SmartDoublingHolder holder) { if (l instanceof SmartDoublingHolder holder) {
this.eap$SmartDoubling = holder.eap$getSmartDoubling(); this.eap$SmartDoubling = holder.eap$getSmartDoubling();
ExtendedAELogger.LOGGER.debug("[EAP] Menu broadcastChanges HEAD: eap$SmartDoubling={}", this.eap$SmartDoubling); // debug removed
} }
} }
} }

View File

@ -35,7 +35,8 @@
"accessor.ScreenAccessor", "accessor.ScreenAccessor",
"ae2.accessor.PatternAccessTermScreenAccessor", "ae2.accessor.PatternAccessTermScreenAccessor",
"ae2.accessor.PatternAccessTermScreenSlotsRowAccessor", "ae2.accessor.PatternAccessTermScreenSlotsRowAccessor",
"extendedae.accessor.GuiExPatternTerminalAccessor" "extendedae.accessor.GuiExPatternTerminalAccessor",
"extendedae.client.gui.GuiExPatternProviderMixin"
], ],
"injectors": { "injectors": {
"defaultRequire": 1 "defaultRequire": 1