Added Option to force load all chunks when rendering
Rewrote a lot of the Settings code Started destroying the ReplayProcess, gonna fix that ASAP
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package eu.crushedpixel.replaymod.gui;
|
||||
|
||||
import eu.crushedpixel.replaymod.replay.ReplayProcess;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.client.gui.GuiYesNo;
|
||||
import net.minecraft.client.gui.GuiYesNoCallback;
|
||||
|
||||
public class GuiCancelRender extends GuiYesNo {
|
||||
|
||||
private static Minecraft mc = Minecraft.getMinecraft();
|
||||
|
||||
private static GuiYesNoCallback callback = new GuiYesNoCallback() {
|
||||
|
||||
@Override
|
||||
public void confirmClicked(boolean result, int id) {
|
||||
if(result) {
|
||||
ReplayProcess.stopReplayProcess(false);
|
||||
}
|
||||
mc.displayGuiScreen(null);
|
||||
}
|
||||
};
|
||||
|
||||
public GuiCancelRender() {
|
||||
super(callback, "Cancel Rendering", "Are you sure that you want to cancel the current rendering process?", 0);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user