Skip to content

Commit

Permalink
remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Dec 13, 2024
1 parent 01d4132 commit 75c591d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class GuiContainerHook(guiAny: Any) {
if (GuiContainerEvent.PreDraw(gui, gui.inventorySlots, mouseX, mouseY, partialTicks).postAndCatch()) {
if (PlatformUtils.isNeuLoaded()) NEUApi.setInventoryButtonsToDisabled()
GuiData.preDrawEventCancelled = true
println("preDrawEventCancelled")
ci.cancel()
} else {
DelayedRun.runNextTick {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import io.github.moulberry.notenoughupdates.NEUOverlay;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Pseudo;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
Expand All @@ -13,18 +12,9 @@
@Mixin(NEUOverlay.class)
public class MixinNEUOverlay {

@Shadow(remap = false)
private boolean disabled;

@Inject(method = "render", at = @At("HEAD"), cancellable = true, remap = false)
private void render(boolean hoverInv, CallbackInfo ci) {
System.out.println("NEUOverlay.render disabled: " + disabled);
if (new NEURenderEvent().post()) {
System.out.println("NEUOverlay.render cancelled");
try {
new Exception("NEUOverlay.render cancelled").printStackTrace();
} catch (Exception ignored) {
}
ci.cancel();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public class DownloadSourceChecker {

public static void init() {
if (!OSUtils.INSTANCE.isWindows()) return;
// URI host = getDangerousHost();
// if (host != null) {
// openMenu(host);
// }
URI host = getDangerousHost();
if (host != null) {
openMenu(host);
}
}

private static void openMenu(URI host) {
Expand Down

0 comments on commit 75c591d

Please sign in to comment.