Gjallarhorn: Graphical render session fix for frame not closing.

This commit is contained in:
Kenneth Endfinger
2022-02-25 00:17:05 -05:00
parent c9d4fe1733
commit 8289616762
8 changed files with 12 additions and 31 deletions

View File

@ -1,7 +1,5 @@
package cloud.kubelet.foundation.heimdall
import org.bukkit.Material
fun String.sqlSplitStatements(): List<String> {
val statements = mutableListOf<String>()
val buffer = StringBuilder()
@ -21,6 +19,3 @@ fun String.sqlSplitStatements(): List<String> {
flush()
return statements
}
val Material.storageBlockName: String
get() = "${key.namespace}:${key.key}"

View File

@ -1,6 +1,5 @@
package cloud.kubelet.foundation.heimdall.event
import cloud.kubelet.foundation.heimdall.storageBlockName
import cloud.kubelet.foundation.heimdall.table.BlockBreakTable
import org.bukkit.Location
import org.bukkit.Material
@ -29,7 +28,7 @@ class BlockBreak(
it[z] = location.z
it[pitch] = location.pitch.toDouble()
it[yaw] = location.yaw.toDouble()
it[block] = material.storageBlockName
it[block] = material.key.toString()
}
}
}

View File

@ -1,6 +1,5 @@
package cloud.kubelet.foundation.heimdall.event
import cloud.kubelet.foundation.heimdall.storageBlockName
import cloud.kubelet.foundation.heimdall.table.BlockPlaceTable
import org.bukkit.Location
import org.bukkit.Material
@ -29,7 +28,7 @@ class BlockPlace(
it[z] = location.z
it[pitch] = location.pitch.toDouble()
it[yaw] = location.yaw.toDouble()
it[block] = material.storageBlockName
it[block] = material.key.toString()
}
}
}