mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -04:00
network: create chunk before loading data
This reduces fog size and shrinking when crossing borders
This commit is contained in:
parent
bc90ec93b3
commit
7513f01871
@ -19,6 +19,5 @@ import de.bixilon.minosoft.data.registries.registries.registry.RegistryItem
|
||||
|
||||
interface IntegratedRegistry<T : RegistryItem> {
|
||||
|
||||
|
||||
fun build(name: ResourceLocation, registries: Registries): T?
|
||||
}
|
||||
|
@ -173,8 +173,8 @@ class ChunkS2CP(buffer: PlayInByteBuffer) : PlayS2CPacket {
|
||||
connection.world.unloadChunk(position)
|
||||
return
|
||||
}
|
||||
readingData.readChunkData()
|
||||
val chunk = connection.world.getOrCreateChunk(position)
|
||||
readingData.readChunkData()
|
||||
chunk.setData(data)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user