Fixed not losing any health at near-zero rotation angles. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -393,15 +393,17 @@ public class OpenALStreamPlayer {
|
||||
lastUpdateTime = System.currentTimeMillis() - offsetTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the stream.
|
||||
*/
|
||||
public void close() {
|
||||
if(audio != null){
|
||||
if (audio != null) {
|
||||
try {
|
||||
audio.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -916,7 +916,7 @@ public class SoundStore {
|
||||
return;
|
||||
}
|
||||
|
||||
if(this.stream != null){
|
||||
if (this.stream != null) {
|
||||
this.stream.close();
|
||||
}
|
||||
currentMusic = sources.get(0);
|
||||
|
||||
Reference in New Issue
Block a user