aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe/nea/firmament/mixins/devenv/IdentifyStopperPatch.java
blob: fac0688cee499d7e0e7c7386f139310c536103d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package moe.nea.firmament.mixins.devenv;

import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(MinecraftClient.class)
public class IdentifyStopperPatch {
    @Inject(method = "scheduleStop", at = @At("HEAD"))
    private void onStop(CallbackInfo ci) {
        Thread.dumpStack();
    }
}