From 1b20cfa425f90cdfd0343322b6bca702bc52be94 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 24 Jul 2013 20:36:12 +0000 Subject: [PATCH] cEntity doesn't process physics / burning when in an invalid chunk git-svn-id: http://mc-server.googlecode.com/svn/trunk@1680 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.cpp | 10 ++++++++-- 1 file 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); }