diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 23:27:24 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 23:27:24 +0100 |
commit | 219be8186c5b64df7f56cafe9e97322732c7a224 (patch) | |
tree | 73c72f03c4f1f2050a6e1ebf61e422052fb56312 /source/cPlayer.cpp | |
parent | Completely integrated the new axis ordering. Will update worlds accordingly (diff) | |
download | cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.gz cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.bz2 cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.lz cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.xz cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.tar.zst cuberite-219be8186c5b64df7f56cafe9e97322732c7a224.zip |
Diffstat (limited to 'source/cPlayer.cpp')
-rw-r--r-- | source/cPlayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index a5e2b7565..01c99f1dc 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -463,7 +463,10 @@ void cPlayer::CloseWindow(char a_WindowType) void cPlayer::SetLastBlockActionTime()
{
- m_LastBlockActionTime = cRoot::Get()->GetWorld()->GetTime();
+ if (m_World != NULL)
+ {
+ m_LastBlockActionTime = m_World->GetTime();
+ }
}
|