diff --git a/gradle.properties b/gradle.properties index c9387df..063c959 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ loader_version=0.15.0 fabric_version=0.91.1+1.18.2 # Mod Properties -mod_version=0.1 +mod_version=0.2 maven_group=com.replaymod archives_base_name=replaymod # Dependencies diff --git a/src/main/java/com/replaymod/core/KeyBindingRegistry.java b/src/main/java/com/replaymod/core/KeyBindingRegistry.java index dbd8ba3..ae65b13 100644 --- a/src/main/java/com/replaymod/core/KeyBindingRegistry.java +++ b/src/main/java/com/replaymod/core/KeyBindingRegistry.java @@ -54,7 +54,6 @@ public class KeyBindingRegistry extends EventRegistrations { private final Map bindings = new HashMap<>(); private Set onlyInReplay = new HashSet<>(); private Multimap> rawHandlers = ArrayListMultimap.create(); - private static List keybinds = new ArrayList<>(); public Binding registerKeyBinding(String name, int keyCode, Runnable whenPressed, boolean onlyInRepay) { Binding binding = registerKeyBinding(name, keyCode, onlyInRepay); @@ -80,7 +79,7 @@ private Binding registerKeyBinding(String name, int keyCode, boolean onlyInRepay String key = String.format("key.%s.%s", id.getNamespace(), id.getPath()); KeyBinding keyBinding = new KeyBinding(key, InputUtil.Type.KEYSYM, keyCode, CATEGORY); //KeyBindingHelper.registerKeyBinding(keyBinding); - keybinds.add(keyBinding); + ClientRegistry.registerKeyBinding(keyBinding); //#else //$$ FabricKeyBinding fabricKeyBinding = FabricKeyBinding.Builder.create(id, InputUtil.Type.KEYSYM, keyCode, CATEGORY).build(); //$$ net.fabricmc.fabric.api.client.keybinding.KeyBindingRegistry.INSTANCE.register(fabricKeyBinding); @@ -223,11 +222,4 @@ public void setAutoActivating(boolean active) { this.autoActivationUpdate.accept(active); } } - - @SubscribeEvent - public static void registerKeybinds(FMLClientSetupEvent event) { - for (KeyBinding binding: keybinds) { - ClientRegistry.registerKeyBinding(binding); - } - } } diff --git a/src/main/java/com/replaymod/render/rendering/VideoRenderer.java b/src/main/java/com/replaymod/render/rendering/VideoRenderer.java index e0b71fe..c428304 100644 --- a/src/main/java/com/replaymod/render/rendering/VideoRenderer.java +++ b/src/main/java/com/replaymod/render/rendering/VideoRenderer.java @@ -665,13 +665,13 @@ public static String[] checkCompat(Stream settings) { public static String[] checkCompat(RenderSettings settings) { //#if FABRIC>=1 - if (LoadingModList.get().getModFileById("embeddium") != null && !FlawlessFrames.hasSodium()) { - return new String[] { - "Rendering is not supported with your Sodium version.", - "It is missing support for the FREX Flawless Frames API.", - "Either use the Sodium build from replaymod.com or uninstall Sodium before rendering!", - }; - } +// if (LoadingModList.get().getModFileById("embeddium") != null && !FlawlessFrames.hasSodium()) { +// return new String[] { +// "Rendering is not supported with your Sodium version.", +// "It is missing support for the FREX Flawless Frames API.", +// "Either use the Sodium build from replaymod.com or uninstall Sodium before rendering!", +// }; +// } //#if MC>=11700 if (settings.getRenderMethod() == RenderSettings.RenderMethod.ODS && LoadingModList.get().getModFileById("oculus") == null) { diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index dba8982..0a2759f 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -6,6 +6,7 @@ modId="reforgedplaymod" version="${version}" displayName="ReForgedPlay Mod" displayTest = "IGNORE_SERVER_VERSION" +logoFile="logo.png" authors="CrushedPixel, johni0702, Ferri_Arnus" description=''' A Mod which allows you to record, replay and share your Minecraft experience. @@ -57,7 +58,7 @@ config = "mixins.replay.replaymod.json" [[mods]] modId="replaymod" -version="${version}" +version="2.6.18" displayName="Replay Mod" license="GPL-3.0-or-later" displayTest = "IGNORE_SERVER_VERSION" diff --git a/src/main/resources/logo.png b/src/main/resources/logo.png new file mode 100644 index 0000000..520cf20 Binary files /dev/null and b/src/main/resources/logo.png differ