diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-01 21:26:11 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-01 21:26:11 +0100 |
commit | 4c4e9867eba244f7e340b03729b103012fc5d906 (patch) | |
tree | d94a7d314100ec03fff6eb26d21cc939a9650c1a /source | |
parent | Put in some sanity checks to ensure players don't interact with blocks too quickly. Changed gamemode to be player based. (MCServer crashes when picking up an item. Need to find and fix bug.) (diff) | |
download | cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.tar cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.tar.gz cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.tar.bz2 cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.tar.lz cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.tar.xz cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.tar.zst cuberite-4c4e9867eba244f7e340b03729b103012fc5d906.zip |
Diffstat (limited to 'source')
-rw-r--r-- | source/cPlayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index da589a70f..fe3f5a7d6 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -322,7 +322,7 @@ void cPlayer::Heal( int a_Health ) void cPlayer::TakeDamage( int a_Damage, cEntity* a_Instigator )
{
- if ( !(GetWorld()->GetGameMode() == 1) ) {
+ if ( !(m_GameMode == 1) ) {
cPawn::TakeDamage( a_Damage, a_Instigator );
cPacket_UpdateHealth Health;
|