Skip to content

Commit 23c7650

Browse files
authored
Implement default simplify() on Expression (#8001)
Update Expression.java
1 parent d080458 commit 23c7650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/ch/njol/skript/lang/Expression.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ default boolean canReturn(Class<?> returnType) {
255255
*/
256256
Expression<?> getSource();
257257

258+
@Override
259+
default Expression<? extends T> simplify() {
260+
return this;
261+
}
262+
258263
/**
259264
* Tests whether this expression supports the given mode, and if yes what type it expects the <code>delta</code> to be.
260265
* <p>

0 commit comments

Comments
 (0)