Skip to content

Commit

Permalink
fix: missing SideOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 committed Jun 25, 2023
1 parent aebe8d6 commit 3211390
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/main/rtm-patches/jp/ngt/rtm/RTMSound.java.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
--- a/jp/ngt/rtm/RTMSound.java
+++ b/jp/ngt/rtm/RTMSound.java
@@ -53,21 +53,22 @@
@@ -36,10 +36,11 @@
};

public static void init() {
}

+ @net.minecraftforge.fml.relauncher.SideOnly(net.minecraftforge.fml.relauncher.Side.CLIENT)
public static void registerSoundDomains() {
NGTLog.debug("[RTMSound] Register sound domains");
SimpleReloadableResourceManager simplereloadableresourcemanager = (SimpleReloadableResourceManager)NGTUtilClient.getMinecraft().getResourceManager();
Set<String> set = simplereloadableresourcemanager.getResourceDomains();
List<File> list = new ArrayList<>();
@@ -53,21 +54,22 @@
list.add(file2);
set.add(file2.getName());
}
Expand Down

0 comments on commit 3211390

Please sign in to comment.