From 5d67c4557091fcf18a60f2e4721391792ae762da Mon Sep 17 00:00:00 2001 From: Allanis <allanis@saracraft.net> Date: Thu, 5 Jun 2014 17:59:57 +0100 Subject: [PATCH] [Change] Don't count "LAND" as a service in Lua. --- src/llua_space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llua_space.c b/src/llua_space.c index 372cb43..8d2c114 100644 --- a/src/llua_space.c +++ b/src/llua_space.c @@ -426,7 +426,7 @@ static int planetL_class(lua_State* L) { static int planetL_services(lua_State* L) { LuaPlanet* p; p = lua_toplanet(L, 1); - lua_pushnumber(L, p->p->services); + lua_pushnumber(L, (p->p->services & (~PLANET_SERVICE_LAND))); return 1; }