mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
intbox debugger is back
This commit is contained in:
@@ -38,7 +38,6 @@ open class BlockLayer(val width: Int, val height: Int) : Disposable {
|
||||
* TL;DR: LITTLE ENDIAN PLEASE
|
||||
*/
|
||||
constructor(width: Int, height: Int, data: ByteArray) : this(width, height) {
|
||||
unsafe.allocateMemory(width * height * BYTES_PER_BLOCK.toLong())
|
||||
data.forEachIndexed { index, byte -> unsafe.putByte(layerPtr + index, byte) }
|
||||
unsafeArrayInitialised = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user