Skip to content

Commit

Permalink
persist music bus override setting
Browse files Browse the repository at this point in the history
  • Loading branch information
HamaIndustries committed Dec 3, 2024
1 parent 2b29163 commit 82f75b6
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 @@ -17,7 +17,7 @@ authors=HavenKing, ModFest
contributors=Chai, Sisby folk, ShiroJR, Superkat32, maximumpower55, CallMeEcho, quaternary, comp500, LemmaEOF, acikek, TheEpicBlock, SkyNotTheLimit, Patbox, AmyMialee
license=CC0-1.0
# Mod Version
baseVersion=1.7.5
baseVersion=1.7.6
# Branch Metadata
branch=1.21
tagBranch=1.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ protected void writeNbt(NbtCompound tag, RegistryWrapper.WrapperLookup registryL
tag.putInt("repeatDelay", this.repeatDelay);
tag.putFloat("distance", this.distance);
tag.putBoolean("relative", this.relative);
tag.putBoolean("cancelOthers", this.cancelOthers);
Vec3d.CODEC.encodeStart(ops, this.soundPosition)
.resultOrPartial(LOGGER::error)
.ifPresent(result -> tag.put("soundPosition", result));
Expand All @@ -98,6 +99,7 @@ protected void readNbt(NbtCompound tag, RegistryWrapper.WrapperLookup registryLo
this.repeatDelay = tag.getInt("repeatDelay");
this.distance = tag.getFloat("distance");
this.relative = tag.getBoolean("relative");
this.cancelOthers = tag.getBoolean("cancelOthers");
if (tag.contains("soundPosition"))
Vec3d.CODEC.parse(ops, tag.get("soundPosition"))
.resultOrPartial(LOGGER::error)
Expand Down

0 comments on commit 82f75b6

Please sign in to comment.