void LuaEntitySAO::rightClick(ServerActiveObject *clicker) { if(!m_registered) return; lua_State *L = m_env->getLua(); scriptapi_luaentity_rightclick(L, m_id, clicker); }
void LuaEntitySAO::rightClick(ServerActiveObject *clicker) { if(!m_registered) return; // It's best that attachments cannot be clicked if(isAttached()) return; lua_State *L = m_env->getLua(); scriptapi_luaentity_rightclick(L, m_id, clicker); }