1.13 is dead (followup to 8bc0b0a)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//#if MC<11300
|
||||
//#if MC<11400
|
||||
//$$ package com.replaymod.online;
|
||||
//$$
|
||||
//$$ import com.replaymod.online.api.ApiClient;
|
||||
|
||||
@@ -19,7 +19,7 @@ import de.johni0702.minecraft.gui.utils.EventRegistrations;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
//#if MC<11300
|
||||
//#if MC<11400
|
||||
//$$ import net.minecraftforge.common.config.Configuration;
|
||||
//#endif
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ReplayModOnline extends EventRegistrations implements Module {
|
||||
* Always returns null on 1.13+ where the Configuration system has been removed.
|
||||
*/
|
||||
private AuthData loadOldAuthData() {
|
||||
//#if MC<11300
|
||||
//#if MC<11400
|
||||
//$$ Path path = MCVer.getMinecraft().mcDataDir.toPath().resolve("config/replaymod-online.cfg");
|
||||
//$$ Configuration config = new Configuration(path.toFile());
|
||||
//$$ ConfigurationAuthData authData = new ConfigurationAuthData(config);
|
||||
|
||||
@@ -18,7 +18,7 @@ import de.johni0702.minecraft.gui.utils.Colors;
|
||||
import de.johni0702.minecraft.gui.utils.lwjgl.ReadablePoint;
|
||||
import net.minecraft.client.resource.language.I18n;
|
||||
|
||||
//#if MC>=11300
|
||||
//#if MC>=11400
|
||||
import com.replaymod.core.versions.MCVer.Keyboard;
|
||||
//#else
|
||||
//$$ import org.lwjgl.input.Keyboard;
|
||||
|
||||
@@ -39,7 +39,7 @@ import net.minecraft.util.crash.CrashException;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
//#if MC>=11300
|
||||
//#if MC>=11400
|
||||
//#else
|
||||
//$$ import net.minecraft.client.settings.GameSettings;
|
||||
//#endif
|
||||
@@ -164,7 +164,7 @@ public class GuiUploadReplay extends GuiScreen {
|
||||
// Get name of key used for thumbnail creation
|
||||
KeyBindingRegistry registry = mod.getCore().getKeyBindingRegistry();
|
||||
KeyBinding keyBinding = registry.getKeyBindings().get("replaymod.input.thumbnail");
|
||||
//#if MC>=11300
|
||||
//#if MC>=11400
|
||||
String keyName = keyBinding == null ? "???" : keyBinding.getLocalizedName();
|
||||
//#else
|
||||
//$$ String keyName = keyBinding == null ? "???" : GameSettings.getKeyDisplayString(keyBinding.getKeyCode());
|
||||
|
||||
@@ -86,7 +86,7 @@ public class GuiHandler extends EventRegistrations {
|
||||
}).setSize(73, 20).setI18nLabel("replaymod.gui.upload").setDisabled());
|
||||
}
|
||||
|
||||
//#if MC>=11300
|
||||
//#if MC>=11400
|
||||
private void onButton(InjectedButton button) {
|
||||
net.minecraft.client.gui.screen.Screen guiScreen = button.guiScreen;
|
||||
//#else
|
||||
|
||||
Reference in New Issue
Block a user