blob: cc04493385f9c43bbc2b623018d3b7211bc8db0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package moe.nea.firmament.mixins.devenv;
import net.minecraft.client.Minecraft;
import org.spongepowered.asm.mixin.Mixin;
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;
@Mixin(Minecraft.class)
public class IdentifyStopperPatch {
@Shadow
private volatile boolean running;
@Inject(method = "stop", at = @At("HEAD"))
private void onStop(CallbackInfo ci) {
if (this.running)
Thread.dumpStack();
}
}
|