Add a null assertion to the Macro data class

This commit is contained in:
Username404 2021-11-16 20:51:24 +01:00
parent 4793b033ff
commit 4231398197
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ data class Macro(
@JvmField var command: String,
override var title: String = command
): ButtonImpl() {
override fun execAction() = with(Minecraft.getInstance().player) {
override fun execAction(): Unit = with(Minecraft.getInstance().player!!) {
chat(
"/$command".let {
if (it.startsWith("/say") && !hasPermissions(2)) {