summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-18 21:12:27 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-18 21:12:27 +0200
commit719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2 (patch)
treec95660d4c5e94fa7b63cf74c2f6b948a41ea0a29 /src/Protocol/Protocol125.cpp
parentMerge branch 'master' into portals (diff)
downloadcuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.tar
cuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.tar.gz
cuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.tar.bz2
cuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.tar.lz
cuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.tar.xz
cuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.tar.zst
cuberite-719551c31f5ed0d3cbad9797dd81a6bf1ae4e5a2.zip
Diffstat (limited to 'src/Protocol/Protocol125.cpp')
-rw-r--r--src/Protocol/Protocol125.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp
index 8cb34c128..320c1212c 100644
--- a/src/Protocol/Protocol125.cpp
+++ b/src/Protocol/Protocol125.cpp
@@ -836,7 +836,7 @@ void cProtocol125::SendRemoveEntityEffect(const cEntity & a_Entity, int a_Effect
void cProtocol125::SendRespawn(eDimension a_Dimension, bool a_ShouldIgnoreDimensionChecks)
{
cCSLock Lock(m_CSPacket);
- if ((m_LastSentDimension == a_World.GetDimension()) && !a_ShouldIgnoreDimensionChecks)
+ if ((m_LastSentDimension == a_Dimension) && !a_ShouldIgnoreDimensionChecks)
{
// Must not send a respawn for the world with the same dimension, the client goes cuckoo if we do (unless we are respawning from death)
return;