summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 21:26:11 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 21:26:11 +0100
commit4c4e9867eba244f7e340b03729b103012fc5d906 (patch)
treed94a7d314100ec03fff6eb26d21cc939a9650c1a /source/cPlayer.cpp
parentPut 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)
downloadcuberite-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/cPlayer.cpp')
-rw-r--r--source/cPlayer.cpp2
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;