mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
tevd: bytearray64 update
This commit is contained in:
@@ -83,8 +83,8 @@ object WriteWorld {
|
||||
for (y in cy * LandUtil.CHUNK_H until (cy + 1) * LandUtil.CHUNK_H) {
|
||||
for (x in cx * LandUtil.CHUNK_W until (cx + 1) * LandUtil.CHUNK_W) {
|
||||
val tilenum = layer.unsafeGetTile(x, y)
|
||||
ba.add(tilenum.ushr(8).and(255).toByte())
|
||||
ba.add(tilenum.and(255).toByte())
|
||||
ba.appendByte(tilenum.ushr(8).and(255).toByte())
|
||||
ba.appendByte(tilenum.and(255).toByte())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user