diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/storage/API.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/storage/API.kt index 86610177b..0e0055ce0 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/storage/API.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/storage/API.kt @@ -49,7 +49,7 @@ interface IStorageStack { } } -fun T.key(): T { +inline fun T.key(): T { return copy().also { it.count = BigInteger.ONE } as T }