I'm trying to make a mod that pops up a little window for confirmation when you click the x button in the top-right corner, but I have no idea how to prevent minecraft from calling shutdown() when said button is pressed. I assume one would have to write a coremod to replace the shutdown function/change what minecraft calls when x button is pressed, but is there a way to do this without a coremod?