We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00d26a3 + 5d0cc61 commit ef1131cCopy full SHA for ef1131c
src/main/java/net/irisshaders/iris/shaderpack/parsing/ParsedString.java
@@ -104,11 +104,18 @@ public String takeNumber() {
104
if (!Character.isDigit(text.charAt(position)) && !Character.isDigit(text.charAt(position + 1))) {
105
break;
106
}
107
+ } else if (!Character.isDigit(text.charAt(position))) {
108
+ break;
109
110
111
position++;
112
113
114
+ // take any f float suffixes, if we have a number
115
+ if (position > 0 && position + 1 < text.length() && (text.charAt(position) == 'f' || text.charAt(position) == 'F')) {
116
+ position++;
117
+ }
118
+
119
try {
120
Float.parseFloat(text.substring(0, position));
121
} catch (Exception e) {
0 commit comments