summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-31 23:19:05 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-31 23:19:05 +0200
commit09b63565bcdd5977988d390f33de47b17cc7b7b7 (patch)
treeeb2c63352655726045aa4f0f033adb1f830da96e /src
parentUpdated documentation again. (diff)
downloadcuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.tar
cuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.tar.gz
cuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.tar.bz2
cuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.tar.lz
cuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.tar.xz
cuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.tar.zst
cuberite-09b63565bcdd5977988d390f33de47b17cc7b7b7.zip
Diffstat (limited to '')
-rw-r--r--src/BlockEntities/BeaconEntity.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/BlockEntities/BeaconEntity.cpp b/src/BlockEntities/BeaconEntity.cpp
index 55c5ccb7f..805e5e61f 100644
--- a/src/BlockEntities/BeaconEntity.cpp
+++ b/src/BlockEntities/BeaconEntity.cpp
@@ -73,10 +73,13 @@ bool cBeaconEntity::IsValidEffect(cEntityEffect::eType a_Effect, char a_BeaconLe
case cEntityEffect::effSpeed: return (a_BeaconLevel >= 1);
case cEntityEffect::effHaste: return (a_BeaconLevel >= 1);
case cEntityEffect::effNoEffect: return true;
- }
- LOGD("%s: Invalid beacon effect: %d", __FUNCTION__, (int)a_Effect);
- return false;
+ default:
+ {
+ LOGD("%s: Invalid beacon effect: %d", __FUNCTION__, (int)a_Effect);
+ return false;
+ }
+ }
}