mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 10:34:06 +09:00
biome in worldgen
This commit is contained in:
@@ -72,9 +72,9 @@ internal object ExportMap : ConsoleCommand {
|
||||
* R-G-B-A order for RGBA input value
|
||||
*/
|
||||
private fun Int.toByteArray() = byteArrayOf(
|
||||
this.shl(24).and(0xff).toByte(),
|
||||
this.shl(16).and(0xff).toByte(),
|
||||
this.shl(8).and(0xff).toByte(),
|
||||
this.shr(24).and(0xff).toByte(),
|
||||
this.shr(16).and(0xff).toByte(),
|
||||
this.shr(8).and(0xff).toByte(),
|
||||
this.and(0xff).toByte()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user