diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 00:34:30 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-25 00:34:30 +0100 |
commit | 2892a844d43d4c0e8209ad1efc0b135a957a4b8d (patch) | |
tree | 15d657d40fca2a3bed52514c0f7fc79f4e8141aa /source/cPlayer.cpp | |
parent | Very alpha water physic for pickups (The swim now) (diff) | |
download | cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.gz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.bz2 cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.lz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.xz cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.tar.zst cuberite-2892a844d43d4c0e8209ad1efc0b135a957a4b8d.zip |
Diffstat (limited to 'source/cPlayer.cpp')
-rw-r--r-- | source/cPlayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index 2087f7927..5a005005d 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -147,6 +147,8 @@ void cPlayer::SpawnOn( cClientHandle* a_Target ) void cPlayer::Tick(float a_Dt)
{
cChunk* InChunk = GetWorld()->GetChunk( m_ChunkX, m_ChunkY, m_ChunkZ );
+ if( !InChunk ) return;
+
if(m_bDirtyOrientation && !m_bDirtyPosition)
{
cPacket_EntityLook EntityLook( this );
|