Skip to content

Commit

Permalink
Fixes #133
Browse files Browse the repository at this point in the history
  • Loading branch information
senseiwells committed May 30, 2024
1 parent 7f4c293 commit 87bf93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ jar {
publishMods {
file = remapJar.archiveFile
changelog = """
- Updated to 1.20.5
There are still a number of issues with this update, namely clientscript issues (to do with item nbt).
As well as networking issues. GameRule syncing between EssentialAddons and EssentialClient will work
however ChunkDebug is not fully supported yet and will be ported later.
- Updated to 1.20.6
"""
type = STABLE
modLoaders.add("fabric")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,9 @@ private Void playSound(Arguments arguments) {
Double volume = arguments.nextPrimitive(NumberDef.class);
Double pitch = arguments.nextPrimitive(NumberDef.class);
SoundEvent soundEvent = Registries.SOUND_EVENT.get(ClientScriptUtils.stringToIdentifier(soundId));
player.playSoundToPlayer(soundEvent, SoundCategory.MASTER, volume.floatValue(), pitch.floatValue());
ClientScriptUtils.ensureMainThread("playSound", arguments.getInterpreter(), () -> {
player.playSoundToPlayer(soundEvent, SoundCategory.MASTER, volume.floatValue(), pitch.floatValue());
});
return null;
}

Expand Down

0 comments on commit 87bf93c

Please sign in to comment.