Skip to content

Commit d26a6a2

Browse files
committed
Update LitInfinity.java
1 parent e057af3 commit d26a6a2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/java/ch/njol/skript/expressions/LitInfinity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020
public class LitInfinity extends SimpleLiteral<Double> {
2121

2222
static {
23+
// patterns are a bit messy to avoid conflicts between `infinity` enchantment and `infinity` number.
2324
Skript.registerExpression(LitInfinity.class, Double.class, ExpressionType.SIMPLE,
24-
"[positive] (infinity|∞) [value]",
25+
"positive (infinity|∞) [value]",
26+
"∞ [value]",
27+
"infinity value",
2528
"value of [positive] (infinity|∞)");
2629
}
2730

0 commit comments

Comments
 (0)