Refactor source layout
Introduce compat source sets and move all kotlin sources to the main directory [no changelog]
This commit is contained in:
10
src/main/kotlin/util/ErrorBoundary.kt
Normal file
10
src/main/kotlin/util/ErrorBoundary.kt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
|
||||
package moe.nea.firmament.util
|
||||
|
||||
|
||||
fun <T> errorBoundary(block: () -> T): T? {
|
||||
// TODO: implement a proper error boundary here to avoid crashing minecraft code
|
||||
return block()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user