mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 19:05:02 -04:00
network: mark blocks as initialized if server sends empty chunk
* This fixes a bug, that empty chunks (in custom worlds) are marked as not fully received
This commit is contained in:
parent
afcc0a4b2f
commit
b7a84f9dfa
@ -87,7 +87,7 @@ class ConnectionUtil(
|
||||
sendSignedMessage(privateKey, message)
|
||||
}
|
||||
|
||||
fun sendSignedMessage(privateKey: PrivateKey = connection.player.privateKey?.private!!, message: String) {
|
||||
fun sendSignedMessage(privateKey: PrivateKey = connection.player.privateKey!!.private, message: String) {
|
||||
val salt = random.nextLong()
|
||||
val time = Instant.now()
|
||||
val uuid = connection.player.uuid
|
||||
|
@ -14,7 +14,6 @@
|
||||
package de.bixilon.minosoft.util.chunk
|
||||
|
||||
import de.bixilon.kotlinglm.vec2.Vec2i
|
||||
import de.bixilon.kutil.array.ArrayUtil.isEmptyOrOnlyNull
|
||||
import de.bixilon.kutil.cast.CastUtil.unsafeCast
|
||||
import de.bixilon.minosoft.config.StaticConfiguration
|
||||
import de.bixilon.minosoft.data.registries.biomes.Biome
|
||||
@ -204,9 +203,7 @@ object ChunkUtil {
|
||||
}
|
||||
}
|
||||
|
||||
if (!sectionBlocks.isEmptyOrOnlyNull()) {
|
||||
chunkData.blocks = sectionBlocks
|
||||
}
|
||||
chunkData.blocks = sectionBlocks
|
||||
if (lightReceived > 0) {
|
||||
chunkData.light = light
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user