Skip to content

Commit 82e1c1b

Browse files
committed
Ability to change StereoMode max distance from player
1 parent e393db3 commit 82e1c1b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/xxmicloxx/NoteBlockAPI/model/playmode/StereoMode.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,12 @@ public void play(Player player, Location location, Song song, Layer layer, Note
3030
CompatibilityUtils.playSound(player, location, InstrumentUtils.getInstrument(note.getInstrument()), soundCategory, volume, pitch, distance);
3131
}
3232
}
33+
34+
public float getMaxDistance() {
35+
return maxDistance;
36+
}
37+
38+
public void setMaxDistance(float maxDistance) {
39+
this.maxDistance = maxDistance;
40+
}
3341
}

0 commit comments

Comments
 (0)