9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-23 17:09:24 +00:00

fix: use parseFloat instead of valueOf

This commit is contained in:
Craftinators
2023-02-28 14:41:46 -05:00
parent e2d3391070
commit 60dba9efa6

View File

@@ -25,8 +25,8 @@ public class ActionSound extends Action {
float pitch = 1;
if (processedString.length > 2) {
volume = Float.valueOf(processedString[1]);
pitch = Float.valueOf(processedString[2]);
volume = Float.parseFloat(processedString[1]);
pitch = Float.parseFloat(processedString[2]);
}
MessagesUtil.sendDebugMessages("Attempting to play " + soundName, Level.WARNING);