summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-10-05 23:05:37 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-10-05 23:05:37 +0200
commit4a8e7bddcc9565e3e89b718e428aba23c97acdfa (patch)
treea6d7e486cfa1fd9c61eae37b4df39bb284d5f451
parentMerge pull request #2527 from cuberite/FixPrefabHitBox (diff)
parentSpectator Mode doesn't fly[FIX] (diff)
downloadcuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.tar
cuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.tar.gz
cuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.tar.bz2
cuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.tar.lz
cuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.tar.xz
cuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.tar.zst
cuberite-4a8e7bddcc9565e3e89b718e428aba23c97acdfa.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index d35b92296..57bf382d4 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1260,6 +1260,7 @@ void cPlayer::SetCapabilities()
if (IsGameModeSpectator())
{
SetVisible(false);
+ SetCanFly(true);
}
else
{