Skip to content

Commit

Permalink
Custom sounds failed to build (Fix #422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldorion committed Jun 21, 2023
1 parent 05b22fa commit 6d0042e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.md
@@ -1,7 +1,8 @@
# Changelogs:

## 1.9.3
* [Bugfix #423] The world dependency failed to compile in some cases
* [Bugfix #422] Custom sounds failed to build
* [Bugfix #424] The world dependency failed to compile in some cases

## 1.9.2
* Updated Fabric API to 0.83.1, so it always works
Expand Down
2 changes: 1 addition & 1 deletion src/fabric-1.20.1/templates/elementinits/sounds.java.ftl
Expand Up @@ -29,7 +29,7 @@ package ${package}.init;
public class ${JavaModName}Sounds {

<#list sounds as sound>
public static SoundEvent ${sound?upper_case} = new SoundEvent(new ResourceLocation("${modid}", "${sound}"));
public static SoundEvent ${sound?upper_case} = SoundEvent.createVariableRangeEvent(new ResourceLocation("${modid}", "${sound}"));
</#list>

public static void load() {
Expand Down

0 comments on commit 6d0042e

Please sign in to comment.