mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 19:44:05 +09:00
shader cleanup; a config key for higher bits per pixel on graphics
This commit is contained in:
@@ -579,17 +579,17 @@ class UIItemPlayerCells(
|
||||
val bodypartImages = props.bodypartJoints.keys.associate { partname ->
|
||||
fileGetter(partname).let { file ->
|
||||
if (file == null) {
|
||||
printdbg(this, " Partname $partname points to a null file!")
|
||||
// printdbg(this, " Partname $partname points to a null file!")
|
||||
partname to null
|
||||
}
|
||||
else {
|
||||
try {
|
||||
printdbg(this, " Partname $partname successfully retrieved")
|
||||
// printdbg(this, " Partname $partname successfully retrieved")
|
||||
val bytes = file.readAllBytes()
|
||||
partname to Pixmap(bytes, 0, bytes.size)
|
||||
}
|
||||
catch (e: GdxRuntimeException) {
|
||||
printdbg(this, " Partname $partname failed to load: ${e.message}")
|
||||
// printdbg(this, " Partname $partname failed to load: ${e.message}")
|
||||
partname to null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user