Skip to content

Commit

Permalink
version 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed Aug 14, 2024
1 parent 467605d commit f394d62
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 1 addition & 9 deletions src/main/java/com/replaymod/core/KeyBindingRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public class KeyBindingRegistry extends EventRegistrations {
private final Map<String, Binding> bindings = new HashMap<>();
private Set<KeyBinding> onlyInReplay = new HashSet<>();
private Multimap<Integer, Supplier<Boolean>> rawHandlers = ArrayListMultimap.create();
private static List<KeyBinding> keybinds = new ArrayList<>();

public Binding registerKeyBinding(String name, int keyCode, Runnable whenPressed, boolean onlyInRepay) {
Binding binding = registerKeyBinding(name, keyCode, onlyInRepay);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
}
}
}
14 changes: 7 additions & 7 deletions src/main/java/com/replaymod/render/rendering/VideoRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,13 @@ public static String[] checkCompat(Stream<RenderSettings> 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) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down
Binary file added src/main/resources/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f394d62

Please sign in to comment.