summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 821f7054..56ed65f7 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1232,7 +1232,7 @@ void Being::event(Event::Channel channel, const Event &event)
else if (channel == Event::ConfigChannel &&
event.getType() == Event::ConfigOptionChanged)
{
- if (getType() == PLAYER && event.getString("option") == "visiblenames")
+ if (getType() == PLAYER && event.hasValue(&Config::visibleNames))
{
setShowName(config.visibleNames);
}