summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-09-12 21:43:18 +0200
committerGitHub <noreply@github.com>2020-09-12 21:43:18 +0200
commit198407807f1241ea2b06179bcc036f9373c7258e (patch)
treef0e4f690aaa1d35fa43115c8aa102b7f127ee70a /src/Chunk.cpp
parentUse tracing for explosions (#4845) (diff)
downloadcuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar
cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.gz
cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.bz2
cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.lz
cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.xz
cuberite-198407807f1241ea2b06179bcc036f9373c7258e.tar.zst
cuberite-198407807f1241ea2b06179bcc036f9373c7258e.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 3f6a653a4..3abdc6ff8 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -770,7 +770,7 @@ void cChunk::BroadcastPendingBlockChanges(void)
// Resend the full chunk
for (auto ClientHandle : m_LoadedByClient)
{
- m_World->ForceSendChunkTo(m_PosX, m_PosZ, cChunkSender::E_CHUNK_PRIORITY_MEDIUM, ClientHandle);
+ m_World->ForceSendChunkTo(m_PosX, m_PosZ, cChunkSender::Priority::Medium, ClientHandle);
}
}
else
@@ -1443,7 +1443,7 @@ void cChunk::SetAreaBiome(int a_MinRelX, int a_MaxRelX, int a_MinRelZ, int a_Max
// Re-send the chunk to all clients:
for (auto ClientHandle : m_LoadedByClient)
{
- m_World->ForceSendChunkTo(m_PosX, m_PosZ, cChunkSender::E_CHUNK_PRIORITY_MEDIUM, ClientHandle);
+ m_World->ForceSendChunkTo(m_PosX, m_PosZ, cChunkSender::Priority::Medium, ClientHandle);
} // for itr - m_LoadedByClient[]
}