X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ftemplate%2FParserFilter.kt;h=e3896524c7955b0472be720f48659d0d3fbde1a7;hb=2004b7e27c9ea1544f9413d18258569850135f04;hp=4d2f9c1a123923defceb698191e5d6a386ad6a45;hpb=f6bb52d378645bf821febd6696bc69f250a92280;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt b/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt index 4d2f9c1..e389652 100644 --- a/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/template/ParserFilter.kt @@ -21,7 +21,7 @@ class ParserFilter(private val core: Core, private val soneTextParser: SoneTextP is Sone -> soneParameter else -> null } - val context = SoneTextParserContext(sone as? Sone) + val context = SoneTextParserContext(sone) return soneTextParser.parse(text, context) }