diff --git a/src/dehacked.c b/src/dehacked.c index 5149fddd..334179ac 100644 --- a/src/dehacked.c +++ b/src/dehacked.c @@ -8681,12 +8681,7 @@ static inline int lib_getenum(lua_State *L) lua_pushinteger(L, mapmusic); return 1; } else if (fastcmp(word,"server")) { - if (dedicated || !playeringame[serverplayer]) - return 0; - LUA_PushUserdata(L, &players[serverplayer], META_PLAYER); - return 1; - } else if (fastcmp(word,"dedicatedserver")) { - if (!dedicated) + if (!playeringame[serverplayer]) return 0; LUA_PushUserdata(L, &players[serverplayer], META_PLAYER); return 1;