mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-23 08:59:20 +00:00
fix: use parseFloat instead of valueOf
This commit is contained in:
@@ -25,8 +25,8 @@ public class ActionSound extends Action {
|
|||||||
float pitch = 1;
|
float pitch = 1;
|
||||||
|
|
||||||
if (processedString.length > 2) {
|
if (processedString.length > 2) {
|
||||||
volume = Float.valueOf(processedString[1]);
|
volume = Float.parseFloat(processedString[1]);
|
||||||
pitch = Float.valueOf(processedString[2]);
|
pitch = Float.parseFloat(processedString[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
MessagesUtil.sendDebugMessages("Attempting to play " + soundName, Level.WARNING);
|
MessagesUtil.sendDebugMessages("Attempting to play " + soundName, Level.WARNING);
|
||||||
|
|||||||
Reference in New Issue
Block a user