Skip to content

Commit 3acc9d8

Browse files
committed
fix missing semicolon
1 parent 875cea4 commit 3acc9d8

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Changelog
33
index: 4
44
---
55

6+
## 3.3.0
7+
8+
- 🚀 Feat: Added `isSoundPlaying` and `stopSound` to the Sprite and Stage Class.
9+
610
## 3.2.2
711

812
- 🎨 Visual: Improve Pen rendering

resources/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ source.repository=https://github.com/openpatch/scratch-for-java.git
7272

7373
# The version as the user will see it.
7474

75-
library.prettyVersion=3.2.2
75+
library.prettyVersion=3.3.0
7676

7777
# Additional information for the generated webpage.
7878

src/org/openpatch/scratch/Sprite.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,16 @@ public void stopSound(String name) {
237237

238238
/**
239239
* Returns true if the sound if playing
240+
*
240241
* @return playing
241242
*/
242243
public boolean isSoundPlaying(String name) {
243-
for(Sound sound : sounds) {
244-
if (sound.getName().equals(name)) {
245-
return sound.isPlaying()
246-
}
244+
for (Sound sound : sounds) {
245+
if (sound.getName().equals(name)) {
246+
return sound.isPlaying();
247247
}
248+
}
249+
return false;
248250
}
249251

250252
public void setTint(int r, int g, int b) {

src/org/openpatch/scratch/Stage.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,17 @@ public void stopSound(String name) {
351351

352352
/**
353353
* Returns true if the sound if playing
354+
*
354355
* @return playing
355356
*/
356357
public boolean isSoundPlaying(String name) {
357-
for(Sound sound : sounds) {
358+
for (Sound sound : sounds) {
358359
if (sound.getName().equals(name)) {
359-
return sound.isPlaying()
360+
return sound.isPlaying();
360361
}
361362
}
363+
364+
return false;
362365
}
363366

364367
/**

0 commit comments

Comments
 (0)