summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-24 22:36:12 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-24 22:36:12 +0200
commit1b20cfa425f90cdfd0343322b6bca702bc52be94 (patch)
treed87c9771465721eea6e13d1bdc1a7bf4d44688e7
parentServer shuts down when the stdin is closed (linux Ctrl+D / win Ctrl+Z) (diff)
downloadcuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.tar
cuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.tar.gz
cuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.tar.bz2
cuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.tar.lz
cuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.tar.xz
cuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.tar.zst
cuberite-1b20cfa425f90cdfd0343322b6bca702bc52be94.zip
-rw-r--r--source/Entity.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/Entity.cpp b/source/Entity.cpp
index 80fe0d266..2c822d0cc 100644
--- a/source/Entity.cpp
+++ b/source/Entity.cpp
@@ -451,9 +451,15 @@ void cEntity::Tick(float a_Dt, cChunk & a_Chunk)
}
else
{
- HandlePhysics(a_Dt, a_Chunk);
+ if (a_Chunk.IsValid())
+ {
+ HandlePhysics(a_Dt, a_Chunk);
+ }
+ }
+ if (a_Chunk.IsValid())
+ {
+ TickBurning(a_Chunk);
}
- TickBurning(a_Chunk);
}