Add custom global textures
This commit is contained in:
13
src/main/kotlin/moe/nea/firmament/util/LogIfNull.kt
Normal file
13
src/main/kotlin/moe/nea/firmament/util/LogIfNull.kt
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
package moe.nea.firmament.util
|
||||
|
||||
|
||||
fun runNull(block: () -> Unit): Nothing? {
|
||||
block()
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user