Skip to content

Commit

Permalink
hopefully fix phonos client-side crash
Browse files Browse the repository at this point in the history
  • Loading branch information
techno-sam committed Oct 27, 2024
1 parent 99b0fee commit 9a03130
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ loader_version=0.16.3
#Fabric api
fabric_version=0.92.2+1.20.1

mod_version = 1.1.1-beta.1
mod_version = 1.1.1-beta.2
maven_group = io.github.foundationgames
archives_base_name = phonos

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ private ByteBuffer skipRead(AudioStream instance, int size, Operation<ByteBuffer
} catch (IOException e) {
Phonos.LOG.error("Failed to skip audio stream", e);
this.stop();
phonos$ticksToSkip = 0;
return null;
}
phonos$ticksToSkip = 0;
return original.call(instance, size);
Expand Down

0 comments on commit 9a03130

Please sign in to comment.